Skip to content
Snippets Groups Projects

admin/deposit: Use new deposit private API endpoint to list deposits

Previously, the admin-deposit-list view was retrieving all deposits data using the /1/private/deposits/ swh-deposit endpoint and was filtering those client side.

That approach was not efficient at all as the number of deposits increased.

So from now on, swh-web will simply forward the listing requests to the new /1/private/deposits/datatables/ endpoint of swh-deposit which will perform the same filtering and pagination operations as before in an efficient way.

Also remove code that is now dead and ensure deposit private API base URL can be set in configuration with or without trailing slash.

Related to T3128


Migrated from D7550 (view on Phabricator)

Merge request reports

Closed by Phabricator Migration userPhabricator Migration user 3 years ago (Apr 12, 2022 8:52am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading