Skip to content

Get rid of duplicate definitions that trip up typescript #15

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

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

antifuchs
Copy link
Contributor

Two variables in QueryEditor.tsx were duplicated (and identical): isInDashboard and getTimeStampColumnName. This change deletes the second one, which makes typescript happy.

This fixes #14.

Two variables in QueryEditor.tsx were duplicated (and identical):
isInDashboard and getTimeStampColumnName. This change deletes the
second one, which makes typescript happy.
@hengfeiyang hengfeiyang requested a review from omkarK06 October 13, 2024 11:49
@antifuchs
Copy link
Contributor Author

Honestly not sure how to make the "compat check" check pass, but I take the build making it past the "build plugin" step as a good sign (:

@gaby
Copy link

gaby commented Jan 4, 2025

@antifuchs Change this line https://github.com/openobserve/openobserve-grafana-plugin/blob/main/.github/workflows/is-compatible.yml#L12 to 18.

Node 16 is no longer supported that's why compat fails.

@gaby
Copy link

gaby commented Jan 4, 2025

The package.json also needs to be updated to use >=18 engine https://github.com/openobserve/openobserve-grafana-plugin/blob/main/package.json#L60

jealouscloud added a commit to jealouscloud/openobserve-grafana-plugin-fixes that referenced this pull request Jan 8, 2025
hengfeiyang pushed a commit that referenced this pull request Mar 4, 2025
* fix: getField
* Fix bug which skips the first column regardless of if it is a timestamp
* date(timestamp + "Z") was breaking timestamps. Use whatever O2 gives us, unless it's microseconds which needs converting to MS.
* Only add Time column if it's part of the request [breaking for queries relying on this implicit field, but deduplicating for the queries that manually request it including example requests]

* fix: getGraphDataFrame

* [bugfix] No longer skip first requested column
* [bugfix] Remove type: number for non-time fields which breaks string responses
* Detect timestamp column in request

* fix: Add getColumnsFromQuery quote stripping

[big] The dataframe parser would fail to assign fields wrapped in quotes i.e. select 1 as "server"

* change: Utilize datasource defined timestamp column automatically in data frame parser

* Implement #14 fix in #15 to pass tests
@hengfeiyang hengfeiyang merged commit 85446a1 into openobserve:main Mar 4, 2025
1 check failed
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.

Does not build
3 participants