Skip to content

Conversation

@marcleblanc2
Copy link
Contributor

@marcleblanc2 marcleblanc2 commented Apr 10, 2025

For Self-hosted Analytics project

Checklist

Test plan

Tested on self-hosted instance

@marcleblanc2 marcleblanc2 force-pushed the marc/fix-pgsql-data-source-for-grafana branch from 2dc30b5 to 6329279 Compare April 10, 2025 03:11
@marcleblanc2 marcleblanc2 force-pushed the marc/fix-pgsql-data-source-for-grafana branch from 6329279 to 22aaa60 Compare April 10, 2025 03:21
@marcleblanc2 marcleblanc2 changed the title Make grafana data source editable Fix Grafana's data source config for pgsql Apr 10, 2025
@marcleblanc2 marcleblanc2 requested a review from a team April 10, 2025 03:23
@marcleblanc2 marcleblanc2 marked this pull request as ready for review April 10, 2025 03:23
@marcleblanc2 marcleblanc2 enabled auto-merge (squash) April 10, 2025 03:23
Copy link
Contributor

@jdpleiness jdpleiness left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcleblanc2 can you add a little more context here? I'm not sure I see the difference aside from the removal of editable

@marcleblanc2
Copy link
Contributor Author

marcleblanc2 commented Apr 10, 2025

@marcleblanc2 can you add a little more context here? I'm not sure I see the difference aside from the removal of editable

Yes, adding editable: true to implement a Grafana-ism in Grafana's data source config file, as part of building Sourcegraph Analytics for our self-hosted / no-telemetry customers, so they can manage the database connection information, without requiring a bunch of manual maintenance on the Grafana dashboard JSON blob. This came up in my testing this week.

This would be a one-line diff, but I also sorted the config keys in alphabetical order in the same commit

@marcleblanc2 marcleblanc2 requested a review from jdpleiness April 10, 2025 20:53
@marcleblanc2 marcleblanc2 merged commit b65c4ae into main Apr 11, 2025
17 checks passed
@marcleblanc2 marcleblanc2 deleted the marc/fix-pgsql-data-source-for-grafana branch April 11, 2025 13:10
Copy link
Contributor

I see. I know it's tempting to just "sort", but more often than not it's not really needed and makes reviewing what should be a simple change harder.

enriquegh pushed a commit that referenced this pull request Jul 10, 2025
### Checklist

- [x] Follow the [manual testing
process](https://github.com/sourcegraph/deploy-sourcegraph-helm/blob/main/TEST.md)
- [ ] Update
[changelog](https://github.com/sourcegraph/deploy-sourcegraph-helm/blob/main/charts/sourcegraph/CHANGELOG.md)
- [ ] Update [Kubernetes update
doc](https://docs.sourcegraph.com/admin/updates/kubernetes)

### Test plan

Tested on self-hosted instance

<!--
As part of SOC2/GN-104 and SOC2/GN-105 requirements, all pull requests
are REQUIRED to
provide a "test plan". A test plan is a loose explanation of what you
have done or
implemented to test this, as outlined in our Testing principles and
guidelines:

https://docs.sourcegraph.com/dev/background-information/testing_principles
  Write your test plan here after the "Test plan" header.
-->
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.

3 participants