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

Adds RBAC filtering #780

Merged
merged 7 commits into from
Apr 8, 2022
Merged

Adds RBAC filtering #780

merged 7 commits into from
Apr 8, 2022

Conversation

calina-c
Copy link
Contributor

@calina-c calina-c commented Apr 6, 2022

Closes #779.

@calina-c calina-c marked this pull request as ready for review April 6, 2022 10:10
@calina-c calina-c requested a review from a team as a code owner April 6, 2022 10:10
@calina-c calina-c changed the title Adds single filter. Adds RBAC filtering Apr 6, 2022
return (
response.json()
if response.status_code == 200 and response.json()
else query_result
Copy link
Contributor

Choose a reason for hiding this comment

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

If the status_code return is not 200, I think we should log a warning.


response = requests.post(os.getenv("RBAC_SERVER_URL"), json=payload)
if response.status_code == 200 and response.json():
return response.json()
Copy link
Contributor

Choose a reason for hiding this comment

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

If the status_code is not 200, then I think we should log a warning.

tests/test_util.py Show resolved Hide resolved
@codeclimate
Copy link

codeclimate bot commented Apr 7, 2022

Code Climate has analyzed commit 096a49e and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 95.4% (0.1% change).

View more on Code Climate.

@calina-c calina-c merged commit bc838fa into v4main Apr 8, 2022
@calina-c calina-c deleted the rbac-filters branch April 8, 2022 06:30
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.

DDO filter/restriction based on wallet via RBAC
3 participants