hyperledger-labs / business-partner-agent

The Business Partner Agent is a SSI wallet and controller based on aries cloud agent python.
https://labs.hyperledger.org/business-partner-agent/
Apache License 2.0
56 stars 48 forks source link

Sever Side Paging in required areas #787

Closed DritonGoxhufi closed 1 year ago

DritonGoxhufi commented 2 years ago

Server-side paging should be implemented in at least the following areas:

example PR: https://github.com/hyperledger-labs/business-partner-agent/pull/730

etschelp commented 2 years ago

Order of importance:

  1. Event History
  2. Connections
  3. Proof Templates
  4. Schemas

For the proof templates keep the search on top of the table, and use:

Page<BPAProofTemplate> findByNameLike(String name, Pageable pageable);

such as the s param of the PaginationCommand class.

As a next step we probably need to add a search by name to all tables again mainly:

schlagtim commented 2 years ago

788

etschelp commented 1 year ago

If Page<BPAProofTemplate> findByNameLike(String name, Pageable pageable);does not work in case name is empty you can use the Query annotation: Query("select * from bpa_proof_template where name like '$1%'")