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

ROX-18155: pg generic store: Get #6770

Merged
merged 1 commit into from Jul 7, 2023

Conversation

janisz
Copy link
Contributor

@janisz janisz commented Jun 30, 2023

Description

A detailed explanation of the changes in your PR.

Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.

Checklist

  • Investigated and inspected CI test results
  • Unit test and regression tests added
  • Evaluated and added CHANGELOG entry if required
  • Determined and documented upgrade steps
  • Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.

Testing Performed

TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why
you did not do so. Valid reasons include, for example, "CI is sufficient",
"No testable changes". Feel free to attach JSON snippets, curl commands,
screenshots.

In addition to reviewing your code, reviewers must also review your testing
instructions and make sure they are sufficient.

@roxbot
Copy link
Contributor

roxbot commented Jun 30, 2023

Images are ready for the commit at 9bdc2c7.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.1.x-335-g9bdc2c7fac.

@janisz janisz mentioned this pull request Jun 30, 2023
5 tasks
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_GetAll branch from 16b5b7d to a6dd70b Compare July 3, 2023 15:47
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Get branch from 0eaac20 to 8228546 Compare July 3, 2023 15:47
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_GetAll branch from a6dd70b to 390bc82 Compare July 3, 2023 16:01
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Get branch from 8228546 to 3a85339 Compare July 3, 2023 16:01
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_GetAll branch from 390bc82 to d6e5a0a Compare July 4, 2023 12:59
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Get branch from 3a85339 to b49fbe0 Compare July 4, 2023 12:59
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_GetAll branch from d6e5a0a to a315299 Compare July 4, 2023 13:22
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Get branch from b49fbe0 to 54040b8 Compare July 4, 2023 13:22
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_GetAll branch from a315299 to f501f43 Compare July 4, 2023 13:57
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Get branch from 54040b8 to 824a8e5 Compare July 4, 2023 13:57
if ok, err := s.permissionChecker.GetAllowed(ctx); err != nil {
return nil, false, err
} else if !ok {
return nil, false, sac.ErrResourceAccessDenied
Copy link
Contributor

Choose a reason for hiding this comment

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

This changes the behaviour compared to the generated code.
I'd stick to the previous behaviour that returns nil, false, nil otherwise, this may leak information about the user allowed scope.

@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_GetAll branch from f501f43 to c14880c Compare July 6, 2023 11:02
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Get branch from 824a8e5 to 737eed5 Compare July 6, 2023 11:02
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_GetAll branch from c14880c to 633cc54 Compare July 6, 2023 14:15
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Get branch from 737eed5 to f8ee78b Compare July 6, 2023 14:15
@janisz janisz requested a review from rhybrillou July 6, 2023 14:21
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_GetAll branch from 633cc54 to 96d90a5 Compare July 6, 2023 15:36
@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Get branch from f8ee78b to 467a72a Compare July 6, 2023 15:36
@janisz
Copy link
Contributor Author

janisz commented Jul 7, 2023

@janisz started a stack merge that includes this pull request via Graphite.

@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_GetAll branch from 96d90a5 to ffe86f7 Compare July 7, 2023 08:08
Base automatically changed from master-janisz/06-30-ROX-18155_pg_generic_store_GetAll to master July 7, 2023 09:20
@janisz
Copy link
Contributor Author

janisz commented Jul 7, 2023

Graphite rebased this pull request as part of a merge.

@janisz janisz force-pushed the master-janisz/06-30-ROX-18155_pg_generic_store_Get branch from 467a72a to 9bdc2c7 Compare July 7, 2023 09:20
@janisz janisz merged commit 6eb5fa2 into master Jul 7, 2023
32 of 39 checks passed
@janisz
Copy link
Contributor Author

janisz commented Jul 7, 2023

@janisz merged this pull request with Graphite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants