-
Notifications
You must be signed in to change notification settings - Fork 31
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
Filter by access in the program list for catalog client #1526
Conversation
gateway/tests/fixtures/fixtures.json
Outdated
@@ -79,7 +79,10 @@ | |||
"image": "icr.io/awesome-namespace/awesome-title", | |||
"author": 2, | |||
"env_vars": "{\"PROGRAM_ENV1\": \"VALUE1\", \"PROGRAM_ENV2\": \"VALUE2\"}", | |||
"provider": "bfe8aa6a-2127-4123-bf57-5b547293cbea" | |||
"provider": "bfe8aa6a-2127-4123-bf57-5b547293cbea", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you add another api.program that has only 100 instead of adding 100 here so that it can make sure this instance is not returned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code changes look good. Would you add some notes that describe the expected return instances? Probably as comments?
Redhat is returning a 504 downloading the image, I will wait an retry the action later @akihikokuroda |
@akihikokuroda it should be everything fixed now 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary
Until now we were returning in the catalog all those functions that had view access. With this PR the filter will only return those functions with view access by the user.