Skip to content

Bug 1481127 - More robust handling of large numbers of projects #1956

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

Merged
merged 1 commit into from
Aug 23, 2017

Conversation

spadgett
Copy link
Member

@spadgett spadgett commented Aug 21, 2017

Updates origin-web-common to 0.0.47
Updates origin-web-catalog to 0.0.39
Updates uri.js to 1.18.12

  • Don't watch extremely large project lists
  • Don't request projects on every page load
  • Increase debounce wait when filtering projects
  • Use $applyAsync instead of $apply to avoid digest in progress errors
  • Only show the first 250 projects on the project list. Users can filter or sort to see other projects
  • Don't show more than 100 projects in the header dropdown. Users can navigate back to the project list if they have more.
  • Let users type in the name of a project if the list fails.
  • Add track by to project list ng-repeat

Requires openshift/origin-web-common#150
Requires openshift/origin-web-catalog#391

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1481127
Closes #1915
Closes #1923

TODO:

  • Limit number of items in header dropdown
  • Limit number of items on projects page?
  • Disable project list watch is above a certain size?
  • Prompt user for project name on project list when the list can't be loaded
  • Increase debounce interval when filtering project list

@spadgett spadgett force-pushed the projects-list branch 2 times, most recently from 7c1f513 to 30f5447 Compare August 22, 2017 18:19
@spadgett spadgett changed the title [WIP] Don't requests projects on every page load [WIP] More robust handling of large numbers of projects Aug 22, 2017
@spadgett
Copy link
Member Author

@jeff-phillips-18 Still testing, but PTAL

type-name-to-confirm="true"
stay-on-current-page="true"
alerts="alerts">
</delete-link>
alerts="alerts"
Copy link
Member

Choose a reason for hiding this comment

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

The deleteProject directive does not use the alerts parameter.

@spadgett spadgett force-pushed the projects-list branch 2 times, most recently from 8ed8996 to d23d5ca Compare August 23, 2017 18:16
@spadgett spadgett changed the title [WIP] More robust handling of large numbers of projects More robust handling of large numbers of projects Aug 23, 2017
@spadgett spadgett changed the title More robust handling of large numbers of projects Bug 1481127 - More robust handling of large numbers of projects Aug 23, 2017
@spadgett
Copy link
Member Author

@jeff-phillips-18 Another look? This should be ready.

[test]

- Don't watch extremely large project lists
- Don't request projects on every page load
- Increase debounce wait when filtering projects
- Use `$applyAsync` instead of `$apply` to avoid digest in progress errors
- Only show the first 250 projects on the project list. Users can filter
  or sort to see other projects
- Don't show more than 100 projects in the header dropdown. Users can
  navigate back to the project list if they have more.
- Let users type in the name of a project if the list fails.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1481127
@openshift-bot
Copy link

Evaluated for origin web console test up to 7ab78e3

@openshift-bot
Copy link

Origin Web Console Test Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_web_console/83/) (Base Commit: 5972dde) (PR Branch Commit: 7ab78e3)

@spadgett
Copy link
Member Author

[merge][severity: blocker]

@openshift-bot
Copy link

openshift-bot commented Aug 23, 2017

Origin Web Console Merge Results: Waiting: You are in the build queue at position: 1

@openshift-bot
Copy link

Evaluated for origin web console merge up to 7ab78e3

@openshift-bot openshift-bot merged commit c9a5d1a into openshift:master Aug 23, 2017
@spadgett spadgett deleted the projects-list branch August 23, 2017 19:49
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.

4 participants