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

Add updateRelatedResourcesSortOrder utility #488

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

jeffdaley
Copy link
Contributor

Adds a utility to share related-resource-sorting code between Documents and Projects.

@jeffdaley jeffdaley requested a review from a team as a code owner December 7, 2023 19:29
Comment on lines -3 to +4
// TODO: Improve how this generates IDs.
// We should be able to use the `i` argument to generate IDs,
// but that doesn't work when using `createList` in tests.

export default Factory.extend({
id: 0,
id: (i) => i,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This may have been a thing at some point but we're not currently using createList with related-external-links.

@jeffdaley jeffdaley merged commit 7a8fcae into main Dec 12, 2023
2 checks passed
@jeffdaley jeffdaley deleted the jeffdaley/related-resources-sort-order branch December 12, 2023 19:38
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