Skip to content

Conversation

@marcusmoore
Copy link
Collaborator

@marcusmoore marcusmoore commented Jul 22, 2025

This PR moves jobtitle from the top level under assigned_to in the AssetsTransformer.

Fixes #17445
Follow up for ff01078

@marcusmoore marcusmoore requested a review from snipe as a code owner July 22, 2025 18:09
'formatter' => 'employeeNumFormatter',
],[
'field' => 'jobtitle',
'field' => 'assigned_to.jobtitle',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had to double-check changing this line but it renders in the asset index properly.

Image

@snipe
Copy link
Member

snipe commented Jul 22, 2025

I think we need to account for this in the API controller as well tho

@snipe
Copy link
Member

snipe commented Jul 22, 2025

(We have jobtitle in the $allowed_columns array)

@marcusmoore
Copy link
Collaborator Author

It works as is but you're thinking we should put it under assigned_user.jobtitle?

image

@snipe
Copy link
Member

snipe commented Jul 22, 2025

I think we need to pull the sortability on that or fix it. It doesn't seem to work as expected.

Screenshot 2025-07-22 at 7 20 14 PM

@marcusmoore
Copy link
Collaborator Author

Ah right. I see the issue.

@marcusmoore marcusmoore marked this pull request as draft July 22, 2025 18:22
@snipe
Copy link
Member

snipe commented Jul 22, 2025

IIRC, we don't use dot notation on the fields in the presenters, we add a custom sorter scope

@marcusmoore
Copy link
Collaborator Author

I think this one is ready for review now.

gif

@marcusmoore marcusmoore marked this pull request as ready for review July 22, 2025 19:22
@snipe snipe merged commit edfb281 into grokability:develop Jul 22, 2025
4 of 7 checks passed
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.

2 participants