Skip to content

Conversation

@sdonnell-hyland
Copy link
Contributor

@sdonnell-hyland sdonnell-hyland commented Mar 12, 2025

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)

AAE-27160

Columns in the service task list cannot be sorted. This is because the sortKey doesn't match column key since there is an additional layer in the data (entry). Attempting to update the sortKey to match, for example entry.startDate, allows the columns to sort correctly, but API calls include entry.startDate as the column name in query parameters.

During review, I noticed some mock data was actually correct and contained the entry node in data. This change is breaking, but provides consistency with similar components.

What is the new behaviour?
Server data is filtered and mapped to exclude the extra entry layer.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Applications that use this component will need to update the key value in their column definitions as well as update the success callback and ng-template that use the data. For Hyland Experience, this specifically means the app.config.json templates need to be updated for both admin-apa and admin-hxp.

@sdonnell-hyland sdonnell-hyland changed the title AAE-27160 fix the structure of data returned from service-tasks API AAE-27160 Fix the structure of data returned from service-tasks API Mar 12, 2025
Copy link
Contributor

@dthornton-hyl dthornton-hyl left a comment

Choose a reason for hiding this comment

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

Approve if others agree with the breaking change.

@sdonnell-hyland sdonnell-hyland force-pushed the fix/AAE-27160-service-task-sort branch from 4e04593 to 5fa5056 Compare March 14, 2025 18:26
@sonarqubecloud
Copy link

@sdonnell-hyland sdonnell-hyland merged commit d5bd97e into develop Mar 14, 2025
18 checks passed
@sdonnell-hyland sdonnell-hyland deleted the fix/AAE-27160-service-task-sort branch March 14, 2025 19:22
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.

6 participants