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

[CA-572] remove shallow permissions checks #417

Merged
merged 3 commits into from
Apr 21, 2020

Conversation

marctalbott
Copy link
Contributor

@marctalbott marctalbott commented Apr 8, 2020

Ticket: CA-572
The performance benefit of the short-circuit approach no longer appears to exist in our new Postgres world. This PR removes the short circuit for cleanliness.

See performance results here if curious: https://datastudio.google.com/open/1BpuL1fTAEmmwsCzCzUm2M-tCygIG1Tcm?usp=sharing


PR checklist

  • I've followed the instructions if I've made any changes to the API, especially if they're breaking changes
  • I've updated the RC_XXX release ticket with any manual steps required to release this change
  • I've updated the FISMA documentation if I've made any security-related changes, including auth, encryption, or auditing

@coveralls
Copy link

coveralls commented Apr 8, 2020

Coverage Status

Coverage decreased (-0.3%) to 75.712% when pulling 6b1e45a on mtalbott-long-circuit into 9ffd8a8 on develop.

@marctalbott marctalbott changed the title [WIP] remove shallow permissions checks [CA-572] remove shallow permissions checks Apr 17, 2020
@marctalbott marctalbott marked this pull request as ready for review April 17, 2020 17:31
} yield {
attempt2
}
traceIOWithParent("fullCheck", parentSpan)(_ => hasPermissionFullCheck(resource, action, userId))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would rename hasPermissionFullCheck to hasPermission and remove this method

@marctalbott marctalbott merged commit ca7b0cd into develop Apr 21, 2020
@marctalbott marctalbott deleted the mtalbott-long-circuit branch April 21, 2020 13:20
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

4 participants