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

Use PolicyQueryUser over BackstageIdentity #250

Merged
merged 4 commits into from
Dec 1, 2024

Conversation

Parsifal-M
Copy link
Owner

👋 Thanks for contributing

What's this PR about?

We should be using the PolicyQueryUser instead of the BackstageIdentity, its not a massive difference but this removes the need to import the BackstageIdentity when we just need the PolicyQuery and PolicyQueryUser.

Type of change

  • 🌟 New feature
  • 🐛 Bug fix
  • 📝 Documentation update
  • 🧹 Code cleanup/refactor

What does it solve?

Cleaner code 🧹

Testing

  • Added/updated tests
  • Need help with testing
  • N/A - documentation only

Related issues


Need any help? Feel free to ask questions in your PR! 💬

Signed-off-by: Peter Macdonald <macdonald.peter90@gmail.com>
Signed-off-by: Peter Macdonald <macdonald.peter90@gmail.com>
Signed-off-by: Peter Macdonald <macdonald.peter90@gmail.com>
@github-actions github-actions bot added the cicd label Dec 1, 2024
Signed-off-by: Peter Macdonald <macdonald.peter90@gmail.com>
Copy link

changeset-bot bot commented Dec 1, 2024

🦋 Changeset detected

Latest commit: 97d8c9e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@parsifal-m/plugin-permission-backend-module-opa-wrapper Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Dec 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.25%. Comparing base (b010a08) to head (97d8c9e).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #250   +/-   ##
=======================================
  Coverage   77.25%   77.25%           
=======================================
  Files          28       28           
  Lines         444      444           
  Branches       69       68    -1     
=======================================
  Hits          343      343           
- Misses         94      101    +7     
+ Partials        7        0    -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Parsifal-M Parsifal-M merged commit b31f837 into main Dec 1, 2024
9 checks passed
@Parsifal-M Parsifal-M deleted the feature/use-perm-identity branch December 1, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant