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

451 wallets make sortable 2 #453

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OlhaD
Copy link
Contributor

@OlhaD OlhaD commented Jan 22, 2024

Description

Add sorting to 'get wallets' API

What kind of change(s) does this PR introduce?

  • Enhancement
  • Bug fix
  • Refactor

@@ -4,6 +4,8 @@ const TrustRelationshipEnums = require('../../utils/trust-enums');
const walletGetQuerySchema = Joi.object({
limit: Joi.number().required(),
offset: Joi.number().integer(),
sortField: Joi.string(),
sortOrder: Joi.string(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's make this restricted to asc and desc

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OlhaD It may be better to rename these to sort_by and order, to match with the current version of the API, which already has these options implemented.
Also, this PR should be merged into the production branch v1.10, right?

The current version doesn't support sorting by token amount either, so we should create an issue for that as well.

@Kpoke
Copy link
Collaborator

Kpoke commented Jan 24, 2024

There are merge conflicts cc: @OlhaD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants