grafana/docs/sources/setup-grafana
Giuseppe Guerra cca9d89733
Plugins: Angular detector: Remote patterns fetching (#69843)
* Plugins: Angular detector: Remote patterns fetching

* Renamed PatternType to GCOMPatternType

* Renamed files

* Renamed more files

* Moved files again

* Add type checks, unexport GCOM structs

* Cache failures, update log messages, fix GCOM URL

* Fail silently for unknown pattern types, update docstrings

* Fix tests

* Rename gcomPattern.Value to gcomPattern.Pattern

* Refactoring

* Add FlagPluginsRemoteAngularDetectionPatterns feature flag

* Fix tests

* Re-generate feature flags

* Add TestProvideInspector, renamed TestDefaultStaticDetectorsInspector

* Add TestProvideInspector

* Add TestContainsBytesDetector and TestRegexDetector

* Renamed getter to provider

* More tests

* TestStaticDetectorsProvider, TestSequenceDetectorsProvider

* GCOM tests

* Lint

* Made detector.detect unexported, updated docstrings

* Allow changing grafana.com URL

* Fix API path, add more logs

* Update tryUpdateRemoteDetectors docstring

* Use angulardetector http client

* Return false, nil if module.js does not exist

* Chore: Split angualrdetector into angularinspector and angulardetector packages

Moved files around, changed references and fixed tests:
- Split the old angulardetector package into angular/angulardetector and angular/angularinspector
- angulardetector provides the detection structs/interfaces (Detector, DetectorsProvider...)
- angularinspector provides the actual angular detection service used directly in pluginsintegration
- Exported most of the stuff that was private and now put into angulardetector, as it is not required by angularinspector

* Renamed detector.go -> angulardetector.go and inspector.go -> angularinspector.go

Forgot to rename those two files to match the package's names

* Renamed angularinspector.ProvideInspector to angularinspector.ProvideService

* Renamed "harcoded" to "static" and "remote" to "dynamic"

from PR review, matches the same naming schema used for signing keys fetching

* Fix merge conflict on updated angular patterns

* Removed GCOM cache

* Renamed Detect to DetectAngular and Detector to AngularDetector

* Fix call to NewGCOMDetectorsProvider in newDynamicInspector

* Removed unused test function newError500GCOMScenario

* Added angularinspector service definition in pluginsintegration

* Moved dynamic inspector into pluginsintegration

* Move gcom angulardetectorsprovider into pluginsintegration

* Log errUnknownPatternType at debug level

* re-generate feature flags

* fix error log
2023-06-26 15:33:21 +02:00
..
configure-grafana Plugins: Angular detector: Remote patterns fetching (#69843) 2023-06-26 15:33:21 +02:00
configure-security Auth: Support google OIDC and group fetching (#70140) 2023-06-26 09:44:57 +02:00
image-rendering [feat] docs; update admonition syntax (#68842) 2023-05-22 15:45:28 -05:00
installation Docs: removes-yum (#70634) 2023-06-23 14:31:11 -05:00
_index.md docs: clarifies that only OSS or Enterprise are installed (#70619) 2023-06-23 12:20:20 -05:00
configure-docker.md Docs/docker compose update (#64565) 2023-06-07 14:27:31 -05:00
set-up-for-high-availability.md Wording changes to improve clarity. (#66045) 2023-05-12 11:09:09 -05:00
set-up-grafana-live.md [feat] docs; update admonition syntax (#68842) 2023-05-22 15:45:28 -05:00
set-up-grafana-monitoring.md Enable doc-validator for specific directories (#63524) 2023-05-18 15:50:20 +01:00
set-up-https.md [feat] docs; update admonition syntax (#68842) 2023-05-22 15:45:28 -05:00
sign-in-to-grafana.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
start-restart-grafana.md [feat] docs; update admonition syntax (#68842) 2023-05-22 15:45:28 -05:00