]> BookStack Code Mirror - bookstack/commit
Search API: Updated handling of parent detail, added testing
authorDan Brown <redacted>
Tue, 3 Dec 2024 13:47:45 +0000 (13:47 +0000)
committerDan Brown <redacted>
Tue, 3 Dec 2024 13:51:46 +0000 (13:51 +0000)
commitfec44452cb67819b594bdfca4ca37e4a20c0f42e
tree1f1a3a01e4e5a59bd661cf5fe4963079db5e0d10
parentf60671146379e76550ce81f7a8738f848ebc63de
Search API: Updated handling of parent detail, added testing

Review of #5280.

- Removed additional non-needed loads which could ignore permissions.
- Updated new formatter method name to be more specific on use.
- Added test case to cover changes.
- Updated API examples to align parent id/info in info to be
  representative.
app/Api/ApiEntityListFormatter.php
app/Search/SearchApiController.php
dev/api/responses/search-all.json
tests/Api/SearchApiTest.php