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

Remove use_task_pages_api feature toggle now that all users have it enabled #12744

Merged
merged 7 commits into from Nov 22, 2019

Conversation

hschallhorn
Copy link
Contributor

@hschallhorn hschallhorn commented Nov 18, 2019

Resolves #12216, Resolves #12781.

Description

Removes all mention of the use_task_pages_api as it has been enabled for all users since #2224

Acceptance Criteria

  • use_task_pages_api feature toggle is removed
  • All current tests pass

@hschallhorn hschallhorn self-assigned this Nov 18, 2019
@@ -141,38 +141,33 @@ def fill_in_and_submit_bulk_assign_modal
end
end

context "when tasks in queue are paginated" do
Copy link
Contributor Author

Choose a reason for hiding this comment

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

best to view these changes ignoring whitespace!

@@ -16,14 +16,14 @@ def initialize(args)
end
end

def to_hash_for_user(user)
def to_hash
Copy link
Contributor Author

Choose a reason for hiding this comment

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

user was only used to ensure this user had use_task_pages_api turned on, so it is removed essentially everywhere.

@codeclimate
Copy link

codeclimate bot commented Nov 18, 2019

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

View more on Code Climate.

@@ -20,19 +20,11 @@ def tasks
return [] if queue_config[:use_task_pages_api]

Rails.logger.debug("starting GenericQueue tasks")

# Temporarily limit hearings-management tasks to AOD tasks, because currently no tasks are loading
if organization.url == "hearings-management"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

HearingsManagement and all users have pagination enabled, should never reach this code

Copy link
Contributor

@kevmo kevmo Nov 22, 2019

Choose a reason for hiding this comment

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

Does this mean that all Caseflow users ( HearingsManagement and all others) will always return [] because queue_config[:use_task_pages_api] will always be true?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

use_task_pages_api will be false for all orgs other than the select few where .use_task_pages_api? is defined as true

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yes, you are right. Thanks!

.includes(*task_includes)
.order(created_at: :asc)
.limit(limit)
end

def relevant_appeal_types
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Vsos and all users have pagination enabled, should never reach this code

@@ -35,10 +35,6 @@ def tracking_tasks_tab
::OrganizationTrackingTasksTab.new(assignee: self)
end

def ama_task_serializer
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Vsos and all users have pagination enabled, should never reach this code

@@ -224,8 +224,10 @@
let(:tracking_task_count) { 14 }

before do
create_list(:informal_hearing_presentation_task, unassigned_count, :in_progress, assigned_to: vso)
create_list(:informal_hearing_presentation_task, assigned_count, :on_hold, assigned_to: vso)
create_list(:informal_hearing_presentation_task, unassigned_count, assigned_to: vso)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove the task status settings here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wasn't really necessary. Creating a task will make the task active and creating a child will put the task on hold.

Copy link
Contributor

Choose a reason for hiding this comment

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

🆒 with me!

Copy link
Contributor

@kevmo kevmo left a comment

Choose a reason for hiding this comment

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

Looks good! 👏

@hschallhorn hschallhorn 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 Nov 22, 2019
@va-bot va-bot merged commit 984aeb2 into master Nov 22, 2019
@va-bot va-bot deleted the hschallhorn/12216-remove-use_task_pages_api branch November 22, 2019 19:30
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
3 participants