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
InfluxDB: Backend parser compatibility with frontend parser #69865
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
itsmylife
added
datasource/InfluxDB
add to changelog
breaking change
Relevant for changelog generation
no-backport
Skip backport of PR
labels
Jun 9, 2023
13 tasks
# Conflicts: # pkg/tsdb/influxdb/response_parser_test.go
itsmylife
requested review from
gabor,
a team and
osg-grafana
and removed request for
a team
June 19, 2023 12:14
LudoVio
approved these changes
Jun 26, 2023
LudoVio
pushed a commit
that referenced
this pull request
Jun 26, 2023
* Reformatting and restructuring * Update unit test * Always send the default retention policy as first element * Fix typo * Update test * Update test once more * Field names start with capital letters * Simplify the condition * Case-insensitive checks * Fix typo * Update response_parser test * Update imports
harisrozajac
pushed a commit
that referenced
this pull request
Jun 29, 2023
* Reformatting and restructuring * Update unit test * Always send the default retention policy as first element * Fix typo * Update test * Update test once more * Field names start with capital letters * Simplify the condition * Case-insensitive checks * Fix typo * Update response_parser test * Update imports
harisrozajac
pushed a commit
that referenced
this pull request
Jun 30, 2023
* Reformatting and restructuring * Update unit test * Always send the default retention policy as first element * Fix typo * Update test * Update test once more * Field names start with capital letters * Simplify the condition * Case-insensitive checks * Fix typo * Update response_parser test * Update imports
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
add to changelog
area/backend
area/frontend
breaking change
Relevant for changelog generation
datasource/InfluxDB
no-backport
Skip backport of PR
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is this feature?
InfluxDB backend parser returns fields
Time
andValue
instead oftime
andvalue
to be compatible with its predecessor frontend parser.Epic: #65045
Why do we need this feature?
Being compatible with InfluxDB frontend parser https://github.com/grafana/grafana/blob/main/public/app/plugins/datasource/influxdb/response_parser.ts#L185-L188
Who is this feature for?
InfluxDB users with the feature flag
influxdbBackendMigration
enabled.Which issue(s) does this PR fix?:
Special notes for your reviewer:
How to test (for users who did not enable
influxdbBackendMigration
feature toggle before)InfluxQL
Join By Field
and useTime
field.influxdbBackendMigration
No Data
How to test (for users who enabled
influxdbBackendMigration
feature toggle before)InfluxQL
Join By Field
and usetime
field.No Data
Time
Release notice breaking change
InfluxDB backend parser returns incompatible data with frontend. The data was being parsed by frontend and we moving towards migrating InfluxDB fully backend. One caveat is Frontend is generating data frames with fields
Time
andValue
. The backend parser, however, generatestime
andvalue
. This is causing issues and inconsistencies for the features (i.e. transformations) relying on those. In order to have a unique approach we choose to support what most of the users already have. Existing Transformations that depend ontime
fields have to be updated to useTime
fields.