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

Refactor: Common read error check function #977

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

julienduchesne
Copy link
Member

In each OSS and enterprise resources, we have the same pattern to check for 404
We can have a common function for that
Also, added that check to resources that were missing it

@github-actions
Copy link

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 promote the Drone build.

For maintainers, it's better to run only the Cloud tests you need, rather than all of them. You can do so by setting the following parameter when promoting:

TESTARGS='-run=<testname>'

@julienduchesne julienduchesne force-pushed the julienduchesne/common-read-function branch 2 times, most recently from 9b4e646 to cc3b9cb Compare July 13, 2023 02:01
@julienduchesne julienduchesne marked this pull request as ready for review July 13, 2023 02:04
@julienduchesne julienduchesne requested a review from a team as a code owner July 13, 2023 02:04
@julienduchesne julienduchesne force-pushed the julienduchesne/common-read-function branch from cc3b9cb to b041908 Compare July 13, 2023 02:13
Copy link
Contributor

@inkel inkel left a comment

Choose a reason for hiding this comment

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

This is great, thanks! Just left a small suggestion, but definitely not blocking from getting this merged.

internal/common/errcheck.go Outdated Show resolved Hide resolved
In each OSS, enterprise, Cloud and ML resources, we have the same pattern to check for 404
We can have a common function for that
Also, added that check to resources that were missing it
@julienduchesne julienduchesne force-pushed the julienduchesne/common-read-function branch from b041908 to 83312cc Compare July 13, 2023 16:32
@julienduchesne julienduchesne merged commit 4fe5361 into master Jul 13, 2023
3 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/common-read-function branch July 13, 2023 16:36
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