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

Shrink CHANGELOG #262

Merged
merged 2 commits into from
Mar 6, 2024
Merged

Shrink CHANGELOG #262

merged 2 commits into from
Mar 6, 2024

Conversation

arogachev
Copy link
Contributor

Q A
Is bugfix?
New feature?
Breaks BC?

@arogachev arogachev added the type:task Task label Mar 4, 2024
@arogachev arogachev requested a review from a team March 4, 2024 13:42
@arogachev arogachev self-assigned this Mar 4, 2024
Copy link

what-the-diff bot commented Mar 4, 2024

PR Summary

  • Updated PHP Version
    We have updated the PHP version to 8.1 for better performance and compatibility.

  • Streamlined Assignment Parameters
    The parameters have been replaced with a single $assignment parameter in the AssignmentsStorageInterface::add() method making it simpler and easier to use.

  • Improved Performance
    The code is now optimized to reduce the calls for getting child items within the loops thereby making it run faster.

  • Expanded Functionality in Interface
    New methods such as getByNames(), getHierarchy() have been added to ItemsStorageInterface. Also, filterUserItemNames() has been added to AssignmentsStorageInterface.

  • Added Methods to ManagerInterface
    New methods getItemsByUserId() have been introduced in ManagerInterface to extend its capabilities.

  • Renamed Parameters
    To improve clarity, the $permissionName parameter has been renamed to $name in the ManagerInterface::removePermission() method.

  • Removed Duplicate Code
    Duplicate code for checking permission was removed from Manager::userHasPermission() to streamline the code.

  • New Methods in Manager
    Added getGuestRoleName() and getGuestRole() to Manager to enhance its functionality.

  • Improved Input Flexibility
    In ItemsStorageInterface, $name has been renamed to $names and array type allowed for it in getAllChildren(), getAllChildRoles(), getAllChildPermissions() methods. This improves the flexibility of input.

  • Renamed Method in ItemsStorageInterface
    The function getAccessTree() has been renamed to getHierarchy() in ItemsStorageInterface for improved clarity.

  • Handled Not Found Exception
    Proper handling has been added for situations when a base item in access tree is not found, preventing unexpected behavior.

@arogachev arogachev added this to the 2.0 milestone Mar 4, 2024
@arogachev arogachev linked an issue Mar 4, 2024 that may be closed by this pull request
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@arogachev arogachev merged commit 29e7f4f into master Mar 6, 2024
2 of 4 checks passed
@arogachev arogachev deleted the shrink-changelog branch March 6, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Group similar entries in CHANGELOG
3 participants