Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data sorting/filtering #42

Open
Keith-CY opened this issue May 28, 2022 · 4 comments
Open

data sorting/filtering #42

Keith-CY opened this issue May 28, 2022 · 4 comments
Assignees
Labels

Comments

@Keith-CY
Copy link
Member

Keith-CY commented May 28, 2022

@Keith-CY Keith-CY self-assigned this May 28, 2022
@Keith-CY Keith-CY added this to the 2022/06/08 - 2022/06/15 milestone Jun 5, 2022
@Keith-CY Keith-CY removed this from the 2022/06/08 - 2022/06/15 milestone Jun 20, 2022
@Danie0918 Danie0918 self-assigned this Feb 27, 2023
@Danie0918 Danie0918 assigned Sven-TBD and unassigned Keith-CY and Danie0918 Mar 8, 2023
@Sven-TBD Sven-TBD assigned Keith-CY and Kirl70 and unassigned Keith-CY and Sven-TBD Mar 27, 2023
@pygman
Copy link

pygman commented Apr 3, 2023

Frontend PR: nervosnetwork/ckb-explorer-frontend#1243

sort and other API parameters that need to be added

sort=${sort_column_0}[.'asc' | .'desc'][,${sort_column_1}[.'asc' | .'desc']][,${sort_column_2}[.'asc' | .'desc']]
default asc
e.g.

sort=capacity
sort=capacity.desc
sort=capacity.desc,time,reward.asc
  1. GET /blocks
{
  "page": 1,
  "page_size": 10,
  "sort": $ 'height' | 'transactions' | 'reward'
}
  1. GET /address_transactions/${address}
{
  "page": 1,
  "page_size": 10,
  "sort": $ 'time',
  "tx_type": 'outgoing' | 'incoming' | 'customised'
}
  1. GET /transactions
{
  "page": 1,
  "page_size": 10,
  "sort": $ 'height' | 'capacity'
}
  1. GET /pending_transactions
{
  "page": 1,
  "page_size": 10,
  "sort": $ 'capacity' | 'time' | 'fee'
}
  1. GET /udts
{
  "page": 1,
  "page_size": 10,
  "sort": $ 'transactions' | 'addresses_count' | 'created_time'
}

@iamyates
Copy link

backend PR: nervosnetwork/ckb-explorer#1243
some features done. some features seems complicated and need to changed database structure a lot. need another meeting/discussion.

@iamyates
Copy link

iamyates commented May 8, 2023

most of the features are done.
integrated with frontend . (https://github.com/pygman/ckb-explorer-frontend.git branch: )
please check this PR: nervosnetwork/ckb-explorer#1243

some features are not done yet because we need to do many work/effort/db-migration, I think we can put these tasks into another iteration , if possible.

backend deployed to: http://3.112.30.76:8181/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🚩Pre Release
Status: No status
Development

No branches or pull requests

7 participants