-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Sort dashboard attributes #2133
Conversation
b2ec977
to
92b1437
Compare
92b1437
to
a3fb4da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
I think if we're going to sort one of them, we should also sort the rest of the dashboard attributes. What do you think?
I feel that Anecdotically, at work there's an admin interface I often have to look at (not Administrate-based) where everything sorted alphabetically, and I often end up scrolling right for a while until I find the ids... |
Yeah, I like that. It felt weird having |
I'm happy to sort the attributes in
I agree that |
Good point! We should put |
Agreed: |
4f4841d
to
0d311d9
Compare
0d311d9
to
c11bea1
Compare
@nickcharlton @pablobm mind taking another look? |
Ah hah, yeah, that works as I was hoping. I'm pondering how we can simplify the implementation, but I'm not getting anywhere today, any thoughts, @pablobm? |
3850cf2
to
ae67bc1
Compare
@nickcharlton @pablobm I've made your suggested improvements. Does this look good now? |
Nice, let's merge this bad boi! |
Sorting the fields listed in the
ATTRIBUTE_TYPES
hash of the dashboard file will make these files easier to maintain. For dashboards that contain a large number of attributes, it can be time-consuming/inefficient to find the correct line when making a change.