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

Closed
Keith-CY opened this issue May 28, 2022 · 5 comments
Closed

data sorting/filtering #42

Keith-CY opened this issue May 28, 2022 · 5 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 moved this from Todo to In Progress in Nervos Wallet/Explorer Jun 14, 2022
@Keith-CY Keith-CY removed this from the 2022/06/08 - 2022/06/15 milestone Jun 20, 2022
@Danie0918 Danie0918 moved this to 🆕 New in CKB Explorer Feb 26, 2023
@Danie0918 Danie0918 self-assigned this Feb 27, 2023
@Danie0918 Danie0918 assigned poor-defined and unassigned Keith-CY and Danie0918 Mar 8, 2023
@Danie0918 Danie0918 moved this from 🆕 New to 📌Planning in CKB Explorer Mar 13, 2023
@poor-defined poor-defined moved this from 📌Planning to 🎨 Designing in CKB Explorer Mar 27, 2023
@poor-defined poor-defined assigned Kirl70 and unassigned Keith-CY and poor-defined Mar 27, 2023
@poor-defined poor-defined assigned iamyates and unassigned Kirl70 Mar 29, 2023
@poor-defined poor-defined moved this from 🎨 Designing to 📌Planning in CKB Explorer Mar 29, 2023
@iamyates iamyates moved this from 📌Planning to 🏗 In Progress in CKB Explorer Apr 3, 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/

@poor-defined
Copy link
Contributor

Close this issue as it has been merged in another PR

@poor-defined poor-defined moved this from 🚩Pre Release to ✅ Done in CKB Explorer Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Status: No status
Development

No branches or pull requests

7 participants