Skip to content

Conversation

@jstirnaman
Copy link
Contributor

Summary

  • Refactor handleAuthorizationHelp to use getGrafanaLink() instead of hardcoded URLs, ensuring all Grafana links come from a single source
  • Fix incorrect URLs in getGrafanaLink mapping (v2, Enterprise, Cloud TSM, Cloud v1)
  • Extract HOST_EXAMPLES to a class-level constant and add DEFAULT_HOST / DEFAULT_HOST_PORT constants to eliminate duplicate localhost:8086 strings

Test plan

  • Verify Hugo builds without errors
  • Test version detector UI shows correct Grafana links for free/paid license options
  • Verify placeholder text in URL input shows interpolated value

… URLs

Refactor handleAuthorizationHelp to use getGrafanaLink() instead of
hardcoded URLs, ensuring all Grafana links come from a single source.

Also fix incorrect URLs in getGrafanaLink mapping:
- InfluxDB OSS 2.x: /visualize-data/ → /tools/
- InfluxDB Enterprise: /influxdb/enterprise/ → /enterprise_influxdb/v1/
- InfluxDB Cloud (TSM): /visualize-data/ → /tools/
- InfluxDB Cloud v1: now links to Enterprise v1 docs (Cloud v1 is
  Enterprise under the hood)
Extract HOST_EXAMPLES to a class-level constant and add DEFAULT_HOST
and DEFAULT_HOST_PORT constants to eliminate duplicate localhost:8086
strings throughout the code.

- Move hostExamples from local variable to class constant
- Use DEFAULT_HOST for URL placeholder and comparison checks
- Use DEFAULT_HOST_PORT for docker curl command examples
@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2026

PR Preview

Preview pages needed

This PR changes layout/asset files but doesn't specify which pages to preview.

To generate a preview, add documentation URLs to your PR description, for example:

Please review:
- https://docs.influxdata.com/influxdb3/core/get-started/
- /telegraf/v1/plugins/

Then re-run the workflow or push a new commit.


Last checked: 2026-01-03 20:09:25 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants