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

Investigate functionality of OrderAlready and add into resources #101

Open
3 tasks
Tracked by #35
laritakr opened this issue Jan 8, 2024 · 0 comments
Open
3 tasks
Tracked by #35

Investigate functionality of OrderAlready and add into resources #101

laritakr opened this issue Jan 8, 2024 · 0 comments
Labels

Comments

@laritakr
Copy link
Contributor

laritakr commented Jan 8, 2024

Fundamentally OrderAlready intercepts the array of values we write to the “data store”. It prefixes each element with a sorting value (e.g. “0First”, “1Second”). Then when we retrieve that value, we fetch all records and sort by the prefix (then strip the prefix).

Add OrderAlready to the valkyrie models to order the creators, and verify and that it works as expected.

  • Collection >> PcdmCollection
  • GenericWork >> GenericWorkResource
  • Image >> ImageResource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants