-
Notifications
You must be signed in to change notification settings - Fork 67
Enable PDC on Github Datasource #527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… transport is overridden for access token client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of things but I tried out and it works! Great job. Also please sign the cla again.
src/views/ConfigEditor.tsx
Outdated
| )} | ||
| </ConfigSection> | ||
|
|
||
| {config.featureToggles['secureSocksDSProxyEnabled' as keyof FeatureToggles] && gte(config.buildInfo.version, '10.0.0') && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| {config.featureToggles['secureSocksDSProxyEnabled' as keyof FeatureToggles] && gte(config.buildInfo.version, '10.0.0') && ( | |
| {config.secureSocksDSProxyEnabled && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkg/plugin/instance.go
Outdated
| datasourceSettings.CachingEnabled = true | ||
|
|
||
| instance, err := NewGitHubInstance(context.Background(), datasourceSettings) | ||
| instance, err := NewGitHubInstance(context.Background(), datasourceSettings, opts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know perhaps why we don't pass down the context from the NewDataSourceInstance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am honestly not quite sure why we create a new separate "immortal" context.
I changed this to use the ctx from NewDatasourceInstance and it all seemed to work as expected?
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
…tasource into jck/enable-pdc


This PR adds support for PDC on the GitHub datasource:
I tested using: https://wiki.grafana-ops.net/w/index.php/Engineering/Grafana/Data_Sources/API_servers/Testing_datasources_with_PDC_Locally.
Confirmed that after enabling PDC, and the secure socks proxy toggle, I could see logs coming from the Agent. Similarly when I turned the agent off, I could see queries begin to fail.
Fixes #120