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

DR-3408: SqlSortDirection Model no longer generated #1572

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

snf2ye
Copy link
Contributor

@snf2ye snf2ye commented Dec 20, 2023

https://broadworkbench.atlassian.net/browse/DR-3408


With a recent TDR change, we no longer generate the "SqlSortDirection" model via swagger. Instead we generate "SqlSortDirectionAscDefault" and "SqlSortDirectionDescDefault" models.

Since we are now setting a default for the query data endpoint in the TDR code, we can pass through an empty sort direction and it will default to "asc." So, we can remove the empty string handling and the reference to the SQLSortDirection model.

A few notes:
How we sort in the UI

  • By default, we sort by the datarepo_row_id "desc" when viewing data in the UI
  • However, we do not show the datarepo_row_id, so the order looks random.

This is not ideal. We should instead default to sorting by the first non-datarepo-row-id, default to "asc". But, this needs to be communicated well with the users so that they're not confused as to why their data is suddenly appearing different to them. Added ticket for this - DR-3407

We missed that the UI code was no longer building

Copy link

cypress bot commented Dec 20, 2023

Passing run #3150 ↗︎

0 25 0 0 Flakiness 0

Details:

Merge 917409b into 74b9afc...
Project: jade-data-repo-ui Commit: 9f80f4e191 ℹ️
Status: Passed Duration: 04:12 💡
Started: Dec 20, 2023 2:17 PM Ended: Dec 20, 2023 2:22 PM

Review all test suite changes for PR #1572 ↗︎

@snf2ye snf2ye changed the title DR-2588: SqlSortDirection Model no longer generated DR-3408: SqlSortDirection Model no longer generated Dec 20, 2023
Copy link
Contributor

@okotsopoulos okotsopoulos left a comment

Choose a reason for hiding this comment

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

Thanks for fixing and filing those follow-on tickets!

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@rushtong rushtong left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏽

@snf2ye snf2ye merged commit 29025e9 into develop Dec 20, 2023
6 checks passed
@snf2ye snf2ye deleted the sh/DR-2588-fix-sort-model branch December 20, 2023 14:33
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