Skip to content
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

Add Library Panel Resource #331

Merged
merged 32 commits into from
Feb 1, 2022
Merged

Conversation

justinTM
Copy link
Contributor

@justinTM justinTM commented Jan 6, 2022

This will be my first substantial Go code, and it also relies on some yet-nonexistent grafana go API additions for library panels

@justinTM justinTM marked this pull request as ready for review January 28, 2022 04:32
@justinTM
Copy link
Contributor Author

@julienduchesne should i remove the replace ... now or after the review?

@julienduchesne
Copy link
Member

julienduchesne commented Jan 31, 2022

@julienduchesne should i remove the replace ... now or after the review?

Didn't realize that this was ready to test due to the failing tests (not your fault, library panels don't exist in v7). I can take a look tomorrow. I'll probably push something to your branch to ignore this resource on the v7 tests

To answer your question, after is fine. When I approve this PR, I'll merge the client and then we can update this PR and merge it too

@julienduchesne julienduchesne self-assigned this Jan 31, 2022
julienduchesne added a commit that referenced this pull request Jan 31, 2022
Will be used for library panels: #331. This is a feature from v8 so the tests on v7 shouldn't run
This line can be added to the test: `CheckOSSTestsSemver(t, ">=8.0.0")`
If a feature is deprecated from Grafana in the future, we can add a lower than semver
julienduchesne added a commit that referenced this pull request Jan 31, 2022
Will be used for library panels: #331. This is a feature from v8 so the tests on v7 shouldn't run
This line can be added to the test: `CheckOSSTestsSemver(t, ">=8.0.0")`
If a feature is deprecated from Grafana in the future, we can add a lower than semver
julienduchesne added a commit that referenced this pull request Jan 31, 2022
Will be used for library panels: #331. This is a feature from v8 so the tests on v7 shouldn't run
This line can be added to the test: `CheckOSSTestsSemver(t, ">=8.0.0")`
If a feature is deprecated from Grafana in the future, we can add a lower than semver
julienduchesne added a commit that referenced this pull request Jan 31, 2022
Will be used for library panels: #331. This is a feature from v8 so the tests on v7 shouldn't run
This line can be added to the test: `CheckOSSTestsSemver(t, ">=8.0.0")`
If a feature is deprecated from Grafana in the future, we can add a lower than semver
julienduchesne added a commit that referenced this pull request Jan 31, 2022
* Add function to check semver for OSS tests
Will be used for library panels: #331. This is a feature from v8 so the tests on v7 shouldn't run
This line can be added to the test: `CheckOSSTestsSemver(t, ">=8.0.0")`
If a feature is deprecated from Grafana in the future, we can add a lower than semver

* Remove test check
Copy link
Member

@julienduchesne julienduchesne left a comment

Choose a reason for hiding this comment

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

Looking very good! Just a few comments and we should be able to merge this!

grafana/resource_library_panel.go Outdated Show resolved Hide resolved
grafana/resource_library_panel.go Outdated Show resolved Hide resolved
grafana/resource_library_panel.go Outdated Show resolved Hide resolved
grafana/resource_library_panel.go Show resolved Hide resolved
grafana/resource_library_panel.go Outdated Show resolved Hide resolved
grafana/resource_library_panel.go Outdated Show resolved Hide resolved
grafana/resource_library_panel_test.go Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@justinTM
Copy link
Contributor Author

justinTM commented Feb 1, 2022

@julienduchesne good to go! Thank you for your review

Copy link
Member

@julienduchesne julienduchesne left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for your contribution @justinTM!

@julienduchesne julienduchesne merged commit 3a2978b into grafana:master Feb 1, 2022
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.

None yet

2 participants