Skip to content

refactor access control errors #309

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

Merged
merged 1 commit into from
Jun 28, 2025
Merged

refactor access control errors #309

merged 1 commit into from
Jun 28, 2025

Conversation

ozgunozerk
Copy link
Collaborator

Fixes #285

Note: this one is important, it does some refactoring. Namely:

PR Checklist

  • Tests
  • Documentation

Copy link

netlify bot commented Jun 27, 2025

Deploy Preview for delightful-dieffenbachia-2097e0 canceled.

Name Link
🔨 Latest commit 86d038d
🔍 Latest deploy log https://app.netlify.com/projects/delightful-dieffenbachia-2097e0/deploys/685ff1ccea6ff100082cdbbe

Copy link

codecov bot commented Jun 27, 2025

Codecov Report

Attention: Patch coverage is 85.71429% with 3 lines in your changes missing coverage. Please review.

Project coverage is 98.03%. Comparing base (04bb54b) to head (86d038d).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/access/access-control/src/storage.rs 80.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #309      +/-   ##
==========================================
- Coverage   98.06%   98.03%   -0.04%     
==========================================
  Files          64       64              
  Lines        5586     5586              
==========================================
- Hits         5478     5476       -2     
- Misses        108      110       +2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@brozorec brozorec left a comment

Choose a reason for hiding this comment

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

I just did the opposite for get_owner() in #317 ...

@ozgunozerk
Copy link
Collaborator Author

I just did the opposite for get_owner() in #317 ...

Oh that's unfortunate, sorry to hear that!

But I think they should both return option instead of panicking, since we have renounce mechanism present.

Copy link
Collaborator

@brozorec brozorec left a comment

Choose a reason for hiding this comment

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

Approving this one but after the conflicts get resolved (test_sac_generic must be the one from main), the new errors must be covered in tests.

@ozgunozerk
Copy link
Collaborator Author

the new errors must be covered in tests.

they were already covered! 👍

@ozgunozerk ozgunozerk merged commit 456e520 into main Jun 28, 2025
7 checks passed
@ozgunozerk ozgunozerk deleted the n-08 branch June 28, 2025 13:46
@github-project-automation github-project-automation bot moved this from Todo to Done in Stellar Contracts Jun 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[N-08] Overloaded Error Obscures Distinct Failure Cases
2 participants