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

When sorting models for navigation, fallback to model name #3710

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jdufresne
Copy link
Member

In my project, several STI models have the same label stored in their translation file. This is because, from the user's perspective, they represent the same abstract concept, even if the developers know differently.

This can sometimes be an issue when rendering the main navigation. As the labels are equal, the listed models can be displayed in either order. It would be better to always display models in a single consistent and deterministic order. This is especially an issue for my project as the end-to-end tests rely on this order to assert correct behavior.

In my project, several STI models have the same label stored in their
translation file. This is because, from the user's perspective, they
represent the same abstract concept, even if the developers know
differently.

This can sometimes be an issue when rendering the main navigation. As
the labels are equal, the listed models can be displayed in either
order. It would be better to always display models in a single
consistent and deterministic order. This is especially an issue for my
project as the end-to-end tests rely on this order to assert correct
behavior.
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.

1 participant