-
-
Notifications
You must be signed in to change notification settings - Fork 270
Improve dashboard metrics list #1967
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
Changes from all commits
2b0e912
d73b3a8
cc9b6a4
848244e
9ce072f
6d7d47a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,7 +99,12 @@ const MetricsPage: FC = () => { | |
| variables: { | ||
| filters, | ||
| pagination: { offset: 0, limit: PAGINATION_LIMIT }, | ||
| ordering, | ||
| ordering: [ | ||
| ordering, | ||
| { | ||
| ['project_Name']: 'ASC', | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What naming convention was used here?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is automatically converted by strawberry. Since the attribute is
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure how it works though. Let's merge it as is and improve sorting capabilities later. |
||
| }, | ||
| ], | ||
| }, | ||
| }) | ||
|
|
||
|
|
@@ -246,7 +251,12 @@ const MetricsPage: FC = () => { | |
| variables: { | ||
| filters, | ||
| pagination: newPagination, | ||
| ordering, | ||
| ordering: [ | ||
| ordering, | ||
| { | ||
| ['project_Name']: 'ASC', | ||
| }, | ||
| ], | ||
| }, | ||
| updateQuery: (prev, { fetchMoreResult }) => { | ||
| if (!fetchMoreResult) return prev | ||
|
|
||
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.
Any reason for having
__in the name?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.
strawberry use these attributes in the
order_bymethod. project_name is not an attribute of the metrics but it is an attribute of the project. And like we access nested attributes in django methods, strawberry does the same.