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

feat(slo): support folder field #1553

Merged
merged 4 commits into from
May 22, 2024

Conversation

inikotoran
Copy link
Contributor

@inikotoran inikotoran commented May 9, 2024

Summary

In order for users to be able to define folder for SLO resource, we need to upgrade github.com/grafana/slo-openapi-client to latest version. This mainly require changing the usage of Slo struct to SloV00Slo. The new struct is generated by OpenAPI spec and since the API request function expect the versioned struct, it would be easier to use the new struct directly.

Related to the folder input, the new field is called folder_uid and it's optional.

Tests

Local

The following tests has been conducted locally and applied in Grafana Cloud Enterprise account.

  • Can create SLO without defining folder_uid
  • Can create SLO with folder_uid
  • Throws error when folder UID is invalid

@CLAassistant
Copy link

CLAassistant commented May 9, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

github-actions bot commented May 9, 2024

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

@inikotoran inikotoran marked this pull request as ready for review May 10, 2024 05:53
@inikotoran inikotoran requested review from a team as code owners May 10, 2024 05:53
@julienduchesne
Copy link
Member

👋 For some reason, the tests don't pass anymore when these changes are applied. I will investigate more tomorrow 👀

julienduchesne added a commit that referenced this pull request May 22, 2024
julienduchesne added a commit that referenced this pull request May 22, 2024
@julienduchesne
Copy link
Member

LGTM! Thanks!

@julienduchesne julienduchesne linked an issue May 22, 2024 that may be closed by this pull request
@julienduchesne julienduchesne merged commit 6211b42 into grafana:main May 22, 2024
43 of 47 checks passed
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.

[Feature Request]: Allow defining Folder for SLOs
3 participants