Page MenuHomeSoftware Heritage

api/private/deposit_list: Add new endpoint to be used with datatables
ClosedPublic

Authored by anlambert on Apr 11 2022, 3:34 PM.

Details

Summary

Add new private API endpoint /1/private/deposits/datatables/ to list and
filter deposits whose responses are intended to be consumed by datatables
javascript framework used in deposits admin Web UI.

Originally that view was implemented in swh-web but for performance reasons
it has been decided to move it in swh-deposit, swh-web will then simply
forward the HTTP request to swh-deposit.

Related to T3128

Diff Detail

Repository
rDDEP Push deposit
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D7546 (id=27359)

Rebasing onto 88ea58cb36...

Current branch diff-target is up to date.
Changes applied before test
commit e17c4981c03d613b11507e592bf145c45c377340
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Wed Mar 30 18:08:12 2022 +0200

    api/private/deposit_list: Add new endpoint to be used with datatables
    
    Add new private API endpoint /1/private/deposits/datatables/ to list and
    filter deposits whose responses are intended to be consumed by datatables
    javascript framework used in deposits admin Web UI.
    
    Originally that view was implemented in swh-web but for performance reasons
    it has been decided to move it in swh-deposit, swh-web will then simply
    forward the HTTP request to swh-deposit.

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/834/ for more details.

Build is green

Patch application report for D7546 (id=27360)

Rebasing onto 88ea58cb36...

Current branch diff-target is up to date.
Changes applied before test
commit 6944b3a439ace21e9b98425685909de9c21e5dea
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Wed Mar 30 18:08:12 2022 +0200

    api/private/deposit_list: Add new endpoint to be used with datatables
    
    Add new private API endpoint /1/private/deposits/datatables/ to list and
    filter deposits whose responses are intended to be consumed by datatables
    javascript framework used in deposits admin Web UI.
    
    Originally that view was implemented in swh-web but for performance reasons
    it has been decided to move it in swh-deposit, swh-web will then simply
    forward the HTTP request to swh-deposit.

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/835/ for more details.

Add related task in commit message

Build is green

Patch application report for D7546 (id=27361)

Rebasing onto 88ea58cb36...

Current branch diff-target is up to date.
Changes applied before test
commit e1dbd5376b3bc0c5afcb08e001c40c9cfd6bf20c
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Wed Mar 30 18:08:12 2022 +0200

    api/private/deposit_list: Add new endpoint to be used with datatables
    
    Add new private API endpoint /1/private/deposits/datatables/ to list and
    filter deposits whose responses are intended to be consumed by datatables
    javascript framework used in deposits admin Web UI.
    
    Originally that view was implemented in swh-web but for performance reasons
    it has been decided to move it in swh-deposit, swh-web will then simply
    forward the HTTP request to swh-deposit.
    
    Related to T3128

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/836/ for more details.

Update: Add missing pagination test

Build is green

Patch application report for D7546 (id=27362)

Rebasing onto 88ea58cb36...

Current branch diff-target is up to date.
Changes applied before test
commit e3a31ba721bfc2515166d613e9944be0ca89c213
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Wed Mar 30 18:08:12 2022 +0200

    api/private/deposit_list: Add new endpoint to be used with datatables
    
    Add new private API endpoint /1/private/deposits/datatables/ to list and
    filter deposits whose responses are intended to be consumed by datatables
    javascript framework used in deposits admin Web UI.
    
    Originally that view was implemented in swh-web but for performance reasons
    it has been decided to move it in swh-deposit, swh-web will then simply
    forward the HTTP request to swh-deposit.
    
    Related to T3128

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/837/ for more details.

This revision is now accepted and ready to land.Apr 11 2022, 4:47 PM