DR-3408: SqlSortDirection Model no longer generated #1572
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
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