]> BookStack Code Mirror - bookstack/commit
Touched entity timestamps on entity tag update
authorDan Brown <redacted>
Mon, 4 Apr 2022 16:24:05 +0000 (17:24 +0100)
committerDan Brown <redacted>
Mon, 4 Apr 2022 16:24:05 +0000 (17:24 +0100)
commitc30a9d35643da526f5ea6299d053b6f0dea3bcb1
treef6a6e2af00f19c8320906bcf186bed1f868f81c9
parentaffae2e3c422282f0fdf5e2c5f924182067a9fee
Touched entity timestamps on entity tag update

Decided it's relevant to entity updated_at since tags are now indexed
alongside content.

- Also fixed tags not applied on shelf.
- Also enforced proper page API update validation.
- Adds tests to cover.

For #3319
Fixes #3370
app/Entities/Repos/BaseRepo.php
app/Http/Controllers/Api/BookshelfApiController.php
app/Http/Controllers/Api/PageApiController.php
tests/Api/BooksApiTest.php
tests/Api/ChaptersApiTest.php
tests/Api/PagesApiTest.php
tests/Api/ShelvesApiTest.php