Skip to content

Commit

Permalink
Shrink CHANGELOG (#262)
Browse files Browse the repository at this point in the history
* Shrink CHANGELOG [skip ci]

* Review fixes
  • Loading branch information
arogachev authored Mar 6, 2024
1 parent 9603196 commit 29e7f4f
Showing 1 changed file with 13 additions and 30 deletions.
43 changes: 13 additions & 30 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,58 +4,41 @@

- Chg #161: Allow to reuse manager test code in related packages (@arogachev)
- New #161: Add `ManagerInterface` (@arogachev)
- Chg #161: Raise PHP version to 8.0 (@arogachev)
- Chg #161, #217: Raise PHP version to 8.1 (@arogachev)
- Bug #178: Exclude parent role from `Manager::getAllChildRoles()` (@arogachev)
- Enh #134: Improve handling and control of `Assignment::$createdAt` (@arogachev)
- Chg #134: Add `$createdAt` parameter to `ManagerInterface::assign()` (@arogachev)
- Chg #134: Replace parameters with `$assignment` parameter in `AssignmentsStorageInterface::add()` (@arogachev)
- Enh #165: Improve performance (@arogachev)
- Chg #134: Replace all parameters with single `$assignment` parameter in `AssignmentsStorageInterface::add()`
(@arogachev)
- Enh #165, #206: Improve performance, including optimization of calls for getting child items within the loops
(@arogachev)
- Enh #165: Rename `getChildren` method to `getDirectAchildren()` in `ItemsStorageInterface` (@arogachev)
- Enh #165: Add methods to `ItemsStorageInterface`:
- `roleExists()`;
- `getRolesByNames()`;
- `getPermissionsByNames()`;
- `getAllChildren()`;
- `getAllChildRoles()`;
- `getAllChildPermissions()`;
- `hasChild()`;
- `hasDirectChild()`.
(@arogachev)
- Enh #165: Add methods to `AssignmentsStorageInterface`:
- `getByItemNames()`;
- `exists()`;
- `userHasItem()`.
(@arogachev)
- Enh #165, #203, #206, #208, #237: Add methods to `ItemsStorageInterface`: `roleExists()`, `getRolesByNames()`,
`getPermissionsByNames()`, `getAllChildren()`, `getAllChildRoles()`, `getAllChildPermissions()`, `hasChild()`,
`hasDirectChild()`, `getByNames()`, `getHierarchy()` (@arogachev)
- Enh #165, #203: Add methods to `AssignmentsStorageInterface`: `getByItemNames()`, `exists()`, `userHasItem()`,
`filterUserItemNames()` (@arogachev)
- Enh #165: Rename `DefaultRoleNotFoundException` to `DefaultRolesNotFoundException` and finalize it (@arogachev)
- Bug #172: Execute rule when checking permissions for guests (@arogachev)
- Chg #172: Make `$userId` parameter `nullable` in `RuleInterface::execute()` (@arogachev)
- Bug #175: Use rule factory for creating rule instances in `CompositeRule` (@arogachev)
- Enh #202: Add `getRole()`, `getPermission()` and `hasChildren()` methods to `ManagerInterface` (@arogachev)
- Enh #202, #203: Add methods to `ManagerInterface`: `getRole()`, `getPermission()`, `hasChildren()`,
`getItemsByUserId()` (@arogachev)
- Chg #202: Rename `$permissionName` parameter to `$name` in `ManagerInterface::removePermission()` method (@arogachev)
- Enh #203: Add `getByNames()` and `getAccessTree` methods to `ItemsStorageInterface` (@arogachev)
- Enh #203: Add `filterUserItemNames()` method to `AssignmentsStorageInterface` (@arogachev)
- Enh #203: Add `getItemsByUserId()` method to `ManagerInterface` (@arogachev)
- Bug #203: Remove duplicated code for checking permission in `Manager::userHasPermission()` (@arogachev)
- Bug #203: Execute rules for parent items and for guests in `Manager::userHasPermission()` (@arogachev)
- Bug #203: Do not limit child items by only direct ones for guests in `Manager::userHasPermission()` (@arogachev)
- Bug #203: Fix `Manager::getRolesByUserId()` to include child roles (@arogachev)
- Chg #203: Verify that every passed role name is a string in `Manager::setDefaultRoleNames()` (@arogachev)
- Enh #203: Add `getGuestRoleName()` and `getGuestRole()` methods to `Manager` (@arogachev)
- Enh #203: Add methods to `Manager`: `getGuestRoleName()`, `getGuestRole()` (@arogachev)
- Chg #203: Throw `RuntimeException` in the case with implicit guest and non-existing guest role in
`Manager::userHasPermission()` (@arogachev)
- Enh #206: Optimize calls for getting child items within the loops (@arogachev)
- Chg #206: Rename `$name` argument to `$names` and allow array type for it in `getAllChildren()`, `getAllChildRoles()`,
`getAllChildPermissions()` methods of `ItemsStorageInterface` (@arogachev)
- Enh #204: Add simple storages for items and assignments (@arogachev)
- Chg #217: Raise PHP version to 8.1 (@arogachev)
- Bug #221: Exclude items with base names when getting children (@arogachev)
- Bug #222: Adjust hierarchy when removing item (@arogachev)
- Bug #223: Handle empty assignments in `Manager::getPermissionsByUserId()` (@arogachev)
- Enh #227: Use snake case for item attribute names (ease migration from Yii 2) (@arogachev)
- New #230: Add `Assignment::getAttributes()` method (@arogachev)
- Bug #237: Handle not found base item in access tree (@arogachev)
- Enh #245: Handle same names during renaming item in `AssignmentsStorage` (@arogachev)
- Chg #208: Rename `getAccessTree()` to `getHierarchy()` in `ItemsStorageInterface` (@arogachev)
- Enh #252: Return `$this` instead of throwing "already assigned" exception in `Manager::assign()` (@arogachev)
- Enh #248: Add `SimpleRuleFactory` (@arogachev)
- Enh #251: Allow checking for user's roles in `ManagerInterface::userHasPermission()` (@arogachev)
Expand Down

0 comments on commit 29e7f4f

Please sign in to comment.