Skip to content

Conversation

@shahryarjb
Copy link
Contributor

@shahryarjb shahryarjb commented Dec 29, 2025

Important

Consideration, my test has no problem with the files related, but we have an error from test/policy/relates_to_actor_via_test.exs:224
Reference (#2491 - 9bc4e03#diff-d9928885f6fbc20a5b1d60f1c9255f067ed473a7c9e20591a85130ccbcfe63adR27-R256)

Hi, After merging this we will have bypass for

  • create
  • update
  • destroy
  • Aggregates

the only option should be done is Calculations (#2372) and it should be noted I added some tests for bulk operations

By the way in another PR, i want to move some duplicated functions to ash/lib/ash/helpers.ex, is it okey? or i should keep it like the current code??

Fixed #2380

If this PR has problem, please let me know to fix it, Thank you in advance 🙏🏻♥️


Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies
Extended bulk create, update, and destroy actions to recognize :allow_global in multitenancy validation, allowing operations without a tenant when permitted. Added comprehensive tests to verify correct behavior for :bypass, :allow_global, and default enforcement strategies in bulk actions.
@zachdaniel zachdaniel merged commit 6f7b897 into ash-project:main Dec 30, 2025
40 of 45 checks passed
@zachdaniel
Copy link
Contributor

🚀 Thank you for your contribution! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants