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(taskView): Implement opt-in paginated request for TaskView #10093

Merged
merged 2 commits into from
May 7, 2024

Conversation

christosarvanitis
Copy link
Contributor

@christosarvanitis christosarvanitis commented May 6, 2024

The taskView by default tries to load the full task list (as allowed by the Orca api configuration). However for applications that are heavily used and have a high number of tasks retrieving the full task list in a single request is resulting many times in timeout either because of the backend or because the Deck timeout was reached.

The task controller on the backend supports pagination so this PR attempts to provide the end user control on the max task limit per page to be retrieved from the backend.
The datasource logic doesnt change in the PR - Deck will still consider the taskView as loaded when all the tasks are retrieved but what changes is that by adding the opt-in setting in settings-local.js

SETTINGS.tasksViewLimitPerPage = number; 

on the taskView the single request will be splitted in multiple requests with limit=&page=.

screenRecording.mov

Copy link
Contributor

@ovidiupopa07 ovidiupopa07 left a comment

Choose a reason for hiding this comment

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

this is to avoid timing out when loading thousands of tasks in one go. For the future I think it would be great to refactor to a fully paginated appraoch

@ovidiupopa07 ovidiupopa07 added the ready to merge Reviewed and ready for merge label May 7, 2024
@mergify mergify bot added the auto merged Merged automatically by a bot label May 7, 2024
@mergify mergify bot merged commit 5fa1e96 into spinnaker:master May 7, 2024
4 checks passed
@christosarvanitis
Copy link
Contributor Author

@ovidiupopa07 Since this is behind a feature flag and there is no change in the functionality when not used can we backport it to the active releases?

@ovidiupopa07
Copy link
Contributor

@Mergifyio backport release-1.32.x release-1.33.x release-1.34.x

Copy link
Contributor

mergify bot commented May 7, 2024

backport release-1.32.x release-1.33.x release-1.34.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request May 7, 2024
* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)

# Conflicts:
#	yarn.lock
mergify bot pushed a commit that referenced this pull request May 7, 2024
* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)
mergify bot pushed a commit that referenced this pull request May 7, 2024
* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)
christosarvanitis added a commit to armory-io/deck that referenced this pull request May 7, 2024
…naker#10093)

* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)
ovidiupopa07 pushed a commit that referenced this pull request May 7, 2024
…) (#10098)

* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)
jasonmcintosh pushed a commit that referenced this pull request May 7, 2024
* feat(taskView): Implement opt-in paginated request for TaskView (#10093)

* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)

* fix(tasksView): Resolving conflicts on yarn.lock backport
mergify bot added a commit that referenced this pull request May 9, 2024
…port #10093) (#10094)

* feat(taskView): Implement opt-in paginated request for TaskView (#10093)

* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)

# Conflicts:
#	yarn.lock

* feat(taskView): Implement opt-in paginated request for TaskView (#10093) (#10098)

* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)

* fix(tasksView): Resolving conflicts on yarn.lock backport (#10099)

* feat(taskView): Implement opt-in paginated request for TaskView (#10093)

* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)

* fix(tasksView): Resolving conflicts on yarn.lock backport

---------

Co-authored-by: Christos Arvanitis <christos.arvanitis@armory.io>
Co-authored-by: Jason <jason.mcintosh@armory.io>
mergify bot added a commit that referenced this pull request May 9, 2024
…) (#10096)

* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)

Co-authored-by: Christos Arvanitis <christos.arvanitis@armory.io>
Co-authored-by: Jason <jason.mcintosh@armory.io>
mergify bot added a commit that referenced this pull request May 9, 2024
…) (#10095)

* feat(tasksview): Allowing opt-in pagination for tasks view loading

* feat(taskView): Implement opt-in paginated request for TaskView

(cherry picked from commit 5fa1e96)

Co-authored-by: Christos Arvanitis <christos.arvanitis@armory.io>
Co-authored-by: Jason <jason.mcintosh@armory.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Reviewed and ready for merge target-release/1.35
Projects
None yet
3 participants