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

feat(ui): Add pagination to workflow list. Fixes #1080 and #976 #2863

Merged
merged 6 commits into from
Apr 28, 2020

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Apr 27, 2020

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed the CLA.
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

Fixes #1080 and #976

This changes the workflows list to be consistent with the archived workflow list:

  • Fetch less data by using fields=
  • Fetch less data by using listOptions.limit=10 - 10 rows by default, paginate the lists.
  • Sorting is gone :( (K8S API does not support it).

Screen Shot 2020-04-28 at 1 11 53 PM
Screen Shot 2020-04-28 at 1 11 58 PM

@alexec alexec linked an issue Apr 27, 2020 that may be closed by this pull request
@alexec alexec added this to the v2.9 milestone Apr 28, 2020
@alexec alexec requested review from whynowy and simster7 and removed request for whynowy April 28, 2020 16:15
@alexec alexec marked this pull request as ready for review April 28, 2020 20:14
@sonarcloud
Copy link

sonarcloud bot commented Apr 28, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

})
}
value={this.props.pagination.limit}>
{[5, 10, 20, 50, 100, 500].map(limit => (
Copy link
Member

Choose a reason for hiding this comment

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

Nice

<div className='columns small-4'>NAME</div>
<div className='columns small-3'>NAMESPACE</div>
<div className='columns small-2'>STARTED</div>
<div className='columns small-2'>DURATION</div>
Copy link
Member

Choose a reason for hiding this comment

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

Minor: Columns should preferably sum to 12

Copy link
Contributor Author

Choose a reason for hiding this comment

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

1+4+3+2+2=12?

@alexec alexec merged commit 56143eb into argoproj:master Apr 28, 2020
@alexec alexec deleted the feat-ui-list branch April 28, 2020 23:19
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.

argo-ui workflow list api need support pagination [UI] list view performance improvements
2 participants