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

feat: add function to get authorization results for canViewerUpdateAsync/canViewerDeleteAsync #249

Conversation

wschurman
Copy link
Member

@wschurman wschurman commented Nov 20, 2024

Why

There's a need to debug authorization failures at the callsites of canViewerDeleteAsync in Expo's server code. Making this return the authorization failure should help to debug.

How

Add new set of functions that returns the result of the authorization check.

Test Plan

Add full test coverage for this new set of functions and run the tests.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (c2ae21b) to head (2846c8a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #249   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           72        72           
  Lines         1964      1985   +21     
  Branches       276       275    -1     
=========================================
+ Hits          1964      1985   +21     
Flag Coverage Δ
integration 100.00% <100.00%> (ø)
unittest 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


🚨 Try these New Features:

@wschurman wschurman force-pushed the @wschurman/11-19-feat_add_function_to_get_authorization_results_for_canviewerupdateasync/canviewerdeleteasync branch from c4dd3d5 to 2846c8a Compare November 20, 2024 01:46
@wschurman wschurman marked this pull request as ready for review November 20, 2024 01:49
Copy link
Contributor

@Josh-McFarlin Josh-McFarlin left a comment

Choose a reason for hiding this comment

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

LGTM

@wschurman wschurman merged commit 27a358d into main Nov 20, 2024
4 checks passed
@wschurman wschurman deleted the @wschurman/11-19-feat_add_function_to_get_authorization_results_for_canviewerupdateasync/canviewerdeleteasync branch November 20, 2024 22:32
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.

3 participants