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

fix(ui): add ordering to org resources #11938

Merged
merged 5 commits into from
Feb 19, 2019
Merged

fix(ui): add ordering to org resources #11938

merged 5 commits into from
Feb 19, 2019

Conversation

OfTheDelmer
Copy link
Contributor

@OfTheDelmer OfTheDelmer commented Feb 15, 2019

Closes #11891

Briefly describe your proposed changes:
Adds ordering to labels and org resources

  • Rebased/mergeable
  • Tests pass
  • http/swagger.yml updated (if modified Go structs or API)
  • Sign CLA (if not already signed)

Copy link
Contributor

@ebb-tide ebb-tide left a comment

Choose a reason for hiding this comment

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

woot!

@@ -196,6 +204,7 @@ class OrganizationView extends PureComponent<Props> {
<GetOrgResources<Variable[]>
organization={org}
fetcher={getVariables}
orderBy={{keys: ['name']}}
Copy link
Contributor

Choose a reason for hiding this comment

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

should orderBy be an optional prop with default= {keys:['name]}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ebb-tide I was wondering that after most places it was used benefited from a simple name ordering. It should just ignore ordering if the collection doesn't have that key. Hmm would it be worth typing the orderedBy.keys property names of the collection item?

@OfTheDelmer OfTheDelmer merged commit a5f51c6 into master Feb 19, 2019
@OfTheDelmer OfTheDelmer deleted the fix/11891 branch February 19, 2019 17:34
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