BookStack/app/Access
Dan Brown 4c7d6420ee
Some checks failed
analyse-php / build (push) Has been cancelled
lint-js / build (push) Has been cancelled
lint-php / build (push) Has been cancelled
test-js / build (push) Has been cancelled
test-migrations / build (8.2) (push) Has been cancelled
test-migrations / build (8.3) (push) Has been cancelled
test-migrations / build (8.4) (push) Has been cancelled
test-php / build (8.2) (push) Has been cancelled
test-php / build (8.3) (push) Has been cancelled
test-php / build (8.4) (push) Has been cancelled
DB: Aligned entity structure to a common table
As per PR #5800

* DB: Planned out new entity table format via migrations

* DB: Created entity migration logic

Made some other tweaks/fixes while testing.

* DB: Added change of entity relation columns to suit new entities table

* DB: Got most view queries working for new structure

* Entities: Started logic change to new structure

Updated base entity class, and worked through BaseRepo.
Need to go through other repos next.

Removed a couple of redundant interfaces as part of this since we can
move the logic onto the shared ContainerData model as needed.

* Entities: Been through repos to update for new format

* Entities: Updated repos to act on refreshed clones

Changes to core entity models are now done on clones to ensure clean
state before save, and those clones are returned back if changes are
needed after that action.

* Entities: Updated model classes & relations for changes

* Entities: Changed from *Data to a common "contents" system

Added smart loading from builder instances which should hydrate with
"contents()" loaded via join, while keeping the core model original.

* Entities: Moved entity description/covers to own non-model classes

Added back some interfaces.

* Entities: Removed use of contents system for data access

* Entities: Got most queries back to working order

* Entities: Reverted back to data from contents, fixed various issues

* Entities: Started addressing issues from tests

* Entities: Addressed further tests/issues

* Entities: Been through tests to get all passing in dev

Fixed issues and needed test changes along the way.

* Entities: Addressed phpstan errors

* Entities: Reviewed TODO notes

* Entities: Ensured book/shelf relation data removed on destroy

* Entities: Been through API responses & adjusted field visibility

* Entities: Added type index to massively improve query speed
2025-10-18 13:14:30 +01:00
..
Controllers Auth: Changed email confirmations to use login attempt user 2024-05-20 17:23:15 +01:00
Guards Maintenance: Updated larastan target level, fixed issues from tests 2025-09-03 15:42:50 +01:00
Mfa DB: Aligned entity structure to a common table 2025-10-18 13:14:30 +01:00
Notifications Locales: More use of locale objects, Addressed failing tests 2023-09-17 16:20:21 +01:00
Oidc OIDC: Updated avatar fetching to run on each login 2025-05-24 16:34:36 +01:00
EmailConfirmationService.php Auth: Changed email confirmations to use login attempt user 2024-05-20 17:23:15 +01:00
ExternalBaseUserProvider.php Maintenance: Addressed a range of phpstan level 3 issues 2025-09-03 10:47:45 +01:00
GroupSyncService.php Played around with a new app structure 2023-05-17 17:56:55 +01:00
Ldap.php PHP: Addressed 8.4 deprecations within app itself 2025-02-17 12:45:37 +00:00
LdapService.php LDAP: Fixed php type error when no cn provided for user 2025-02-20 13:06:49 +00:00
LoginService.php Permissions: Updated usage of controller methods to use enum 2025-09-08 18:14:38 +01:00
RegistrationService.php Theme System: Added AUTH_PRE_REGISTER logical event 2024-02-21 15:30:29 +00:00
Saml2Service.php Maintenance: Reached PHPstan level 2 2025-09-02 16:02:52 +01:00
SocialAccount.php Played around with a new app structure 2023-05-17 17:56:55 +01:00
SocialAuthService.php Auth: Refactored OIDC RP-logout PR code, Extracted logout 2023-12-06 13:49:53 +00:00
SocialDriverManager.php Maintenance: Reached PHPstan level 2 2025-09-02 16:02:52 +01:00
UserInviteException.php Users: Improved user response for failed invite sending 2024-09-29 16:41:18 +01:00
UserInviteService.php Users: Improved user response for failed invite sending 2024-09-29 16:41:18 +01:00
UserTokenService.php Played around with a new app structure 2023-05-17 17:56:55 +01:00