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

Allow QueueTab to return tasks #11735

Merged
merged 11 commits into from
Aug 12, 2019
Merged

Allow QueueTab to return tasks #11735

merged 11 commits into from
Aug 12, 2019

Conversation

lowellrex
Copy link
Contributor

@lowellrex lowellrex commented Aug 12, 2019

Connects #11733. Moves logic for fetching tasks for a given tab from TaskPager to each individual QueueTab.

Three major changes included in this PR:

  1. TaskPager no longer controls which tasks a given tab is supposed to return. That responsibility is transferred to the various QueueTab subclasses' tasks method.
  2. QueueTabs now require an assignee argument when they are created.
  3. Added a new QueueTab.from_name function for returning a tab class given the tab's name string we receive from the front-end.

@lowellrex lowellrex self-assigned this Aug 12, 2019
@codeclimate
Copy link

codeclimate bot commented Aug 12, 2019

Code Climate has analyzed commit e497384 and detected 0 issues on this pull request.

View more on Code Climate.

else
fail(Caseflow::Error::InvalidTaskTableTab, tab_name: tab_name)
end
QueueTab.from_name(tab_name).new(assignee: organization).tasks
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The rest of the changes spring from this one.

@lowellrex lowellrex mentioned this pull request Aug 12, 2019
3 tasks
Copy link
Contributor

@hschallhorn hschallhorn left a comment

Choose a reason for hiding this comment

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

I'm liking it! Thanks for adding on_hold_tasks_tab_spec

@lowellrex lowellrex added the Ready-to-Merge This PR is ready to be merged and will be picked up by va-bot to automatically merge to master label Aug 12, 2019
@va-bot va-bot merged commit 61fc690 into master Aug 12, 2019
@va-bot va-bot deleted the lowell/11733_tasks_for_tab branch August 12, 2019 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready-to-Merge This PR is ready to be merged and will be picked up by va-bot to automatically merge to master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants