-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
Code Climate has analyzed commit e497384 and detected 0 issues on this pull request. View more on Code Climate. |
app/models/task_pager.rb
Outdated
else | ||
fail(Caseflow::Error::InvalidTaskTableTab, tab_name: tab_name) | ||
end | ||
QueueTab.from_name(tab_name).new(assignee: organization).tasks |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
Connects #11733. Moves logic for fetching tasks for a given tab from
TaskPager
to each individualQueueTab
.Three major changes included in this PR:
TaskPager
no longer controls which tasks a given tab is supposed to return. That responsibility is transferred to the variousQueueTab
subclasses'tasks
method.QueueTab
s now require anassignee
argument when they are created.QueueTab.from_name
function for returning a tab class given the tab's name string we receive from the front-end.