Skip to content

Remove unused sortable flag from FieldSpec.DataType#18903

Merged
Jackie-Jiang merged 1 commit into
apache:masterfrom
Jackie-Jiang:cleanup_datatype_sortable
Jul 1, 2026
Merged

Remove unused sortable flag from FieldSpec.DataType#18903
Jackie-Jiang merged 1 commit into
apache:masterfrom
Jackie-Jiang:cleanup_datatype_sortable

Conversation

@Jackie-Jiang

Copy link
Copy Markdown
Contributor

Summary

Removes the unused sortable flag from FieldSpec.DataType:

  • Drops the _sortable field and the canBeASortedColumn() method, which has no callers anywhere in the codebase (dead code).
  • Drops the sortable field from DataTypeProperties, so it no longer appears in the GET /schemas/fieldSpec metadata response. No consumer (including the controller UI) reads this field.
  • Adds @JsonIgnoreProperties(ignoreUnknown = true) on DataTypeProperties so deserializers remain tolerant of payloads from older versions that still include sortable.
  • Simplifies the enum constructors accordingly.

@Jackie-Jiang Jackie-Jiang added the cleanup Code cleanup or removal of dead code label Jul 1, 2026
@codecov-commenter

codecov-commenter commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.80%. Comparing base (91be61f) to head (9ef7307).

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #18903   +/-   ##
=========================================
  Coverage     64.80%   64.80%           
  Complexity     1347     1347           
=========================================
  Files          3393     3393           
  Lines        211666   211661    -5     
  Branches      33305    33305           
=========================================
+ Hits         137164   137171    +7     
+ Misses        63431    63418   -13     
- Partials      11071    11072    +1     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (?)
java-21 64.80% <100.00%> (+<0.01%) ⬆️
temurin 64.80% <100.00%> (+<0.01%) ⬆️
unittests 64.80% <100.00%> (+<0.01%) ⬆️
unittests1 56.99% <100.00%> (-0.01%) ⬇️
unittests2 37.16% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Jackie-Jiang Jackie-Jiang merged commit ea74bb9 into apache:master Jul 1, 2026
10 of 11 checks passed
@Jackie-Jiang Jackie-Jiang deleted the cleanup_datatype_sortable branch July 1, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Code cleanup or removal of dead code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants