Skip to content

Rename default scope name

Pavel Shutsin requested to merge rename-default-scope into main

Description

Renames default scope from :normal to :user_and_subject because "normal" is too abstract and unclear for library users outside of declarative policy. Since its behavior is strictly bound to caching key "/dp/condition/#{@condition.key}/#{user_key},#{subject_key}" I picked verbose :user_and_subject name.

Suggested version bump

  • Major (backwards incompatible changes)
  • Minor (backwards compatible changes)
  • Patch (API compatible changes)

Checklist

  • Tests have been added or updated to cover any changes in behavior
  • This does not change the API to consume this library, or a suggested version bump has been provided
  • The CHANGELOG.md has been updated
  • No new runtime dependencies have been introduced

Merge request reports