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

[ANDROAPP-6039] Sort the search parameters #3723

Conversation

siddh1004
Copy link
Contributor

Sort the fields to have all the unique ones at the top and then sort the rest of the attributes as they are in the program configuration (in maintenance app)

Expected order:

  • QR/barcode attributes (unique)
  • QR/barcode attributes (not unique)
  • Other Attributes (unique)
  • Configured order or default order (if not configured)

Description

Please include a summary of the change and include the related jira issue if it exists.

jira issue

Solution description

If this PR is a fix include a brief description on how the issue is solved.

Covered unit test cases

Describe the tests that you ran to verify your changes.

Where did you test this issue?

  • Smartphone Emulator
  • Tablet Emulator
  • Smartphone
  • Tablet

Which Android versions did you test this issue?

  • 4.4
  • 5.X - 6.X
  • 7.X
  • 8.X
  • 9.X - 10.X
  • 11.X - 13.X
  • Other

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code

@siddh1004 siddh1004 changed the title Sort the search parameters [ANDROAPP-6039] Sort the search parameters Jul 10, 2024
@siddh1004 siddh1004 requested a review from andresmr July 12, 2024 09:42
Siddharth Agarwal added 4 commits July 16, 2024 14:19
Sort the fields to have all the unique ones at the top and then sort the rest of the attributes as they are in the program configuration (in maintenance app)

Expected order:
- QR/barcode attributes (unique)
- QR/barcode attributes (not unique)
- Other Attributes (unique)
- Configured order or default order (if not configured)
Add `SearchRepositoryImplKt` to test sorting of search parameter based on renderingType and isUnique properties
@siddh1004 siddh1004 force-pushed the ANDROAPP-6039-Sort-QR-and-searchable-unique-TEAs-to-be-displayed-at-the-top-of-the-list-search-field branch from eb0e176 to b8e6e6b Compare July 16, 2024 08:50
Copy link

@xavimolloy xavimolloy merged commit beea542 into dhis2:develop Jul 17, 2024
4 checks passed
@siddh1004 siddh1004 deleted the ANDROAPP-6039-Sort-QR-and-searchable-unique-TEAs-to-be-displayed-at-the-top-of-the-list-search-field branch July 19, 2024 06:53
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