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

Removing skip made this test pass #18993

Merged
merged 8 commits into from
Jul 14, 2023

Conversation

pamatyatake2
Copy link
Contributor

@pamatyatake2 pamatyatake2 commented Jul 12, 2023

Resolves: APPEALS-24128

Description

Added a before all call that would delete all and reset the primary key since the spreadsheet had hardcoded ID, if for some reason the database table was not cleaned then it was causing failure.

Acceptance Criteria

  • Code compiles correctly
  • Spec passes both locally and in GHA.

Testing Plan

  1. Go to #{jira issue link} or list them below
  • For feature branches merging into master: Was this deployed to UAT?

Frontend

User Facing Changes

  • Screenshots of UI changes added to PR & Original Issue
BEFORE AFTER

Storybook Story

For Frontend (Presentationa) Components

  • Add a Storybook file alongside the component file (e.g. create MyComponent.stories.js alongside MyComponent.jsx)
  • Give it a title that reflects the component's location within the overall Caseflow hierarchy
  • Write a separate story (within the same file) for each discrete variation of the component

Backend

Database Changes

Only for Schema Changes

  • Add typical timestamps (created_at, updated_at) for new tables
  • Update column comments; include a "PII" prefix to indicate definite or potential PII data content
  • Have your migration classes inherit from Caseflow::Migration, especially when adding indexes (use add_safe_index) (see Writing DB migrations)
  • Verify that migrate:rollback works as desired (change supported functions)
  • Perform query profiling (eyeball Rails log, check bullet and fasterer output)
  • For queries using raw sql was an explain plan run by System Team
  • Add appropriate indexes (especially for foreign keys, polymorphic columns, unique constraints, and Rails scopes)
  • Run make check-fks; add any missing foreign keys or add to config/initializers/immigrant.rb (see Record associations and Foreign Keys)
  • Add belongs_to for associations to enable the schema diagrams to be automatically updated
  • Document any non-obvious semantics or logic useful for interpreting database data at Caseflow Data Model and Dictionary

Integrations: Adding endpoints for external APIs

  • Check that Caseflow's external API code for the endpoint matches the code in the relevant integration repo
    • Request: Service name, method name, input field names
    • Response: Check expected data structure
    • Check that calls are wrapped in MetricService record block
  • Check that all configuration is coming from ENV variables
    • Listed all new ENV variables in description
    • Worked with or notified System Team that new ENV variables need to be set
  • Update Fakes
  • For feature branches: Was this tested in Caseflow UAT

Best practices

Code Documentation Updates

  • Add or update code comments at the top of the class, module, and/or component.

Tests

Test Coverage

Did you include any test coverage for your code? Check below:

  • RSpec
  • Jest
  • Other

Code Climate

Your code does not add any new code climate offenses? If so why?

  • No new code climate issues added

Monitoring, Logging, Auditing, Error, and Exception Handling Checklist

Monitoring

  • Are performance metrics (e.g., response time, throughput) being tracked?
  • Are key application components monitored (e.g., database, cache, queues)?
  • Is there a system in place for setting up alerts based on performance thresholds?

Logging

  • Are logs being produced at appropriate log levels (debug, info, warn, error, fatal)?
  • Are logs structured (e.g., using log tags) for easier querying and analysis?
  • Are sensitive data (e.g., passwords, tokens) redacted or omitted from logs?
  • Is log retention and rotation configured correctly?
  • Are logs being forwarded to a centralized logging system if needed?

Auditing

  • Are user actions being logged for audit purposes?
  • Are changes to critical data being tracked ?
  • Are logs being securely stored and protected from tampering or exposing protected data?

Error Handling

  • Are errors being caught and handled gracefully?
  • Are appropriate error messages being displayed to users?
  • Are critical errors being reported to an error tracking system (e.g., Sentry, ELK)?
  • Are unhandled exceptions being caught at the application level ?

Exception Handling

  • Are custom exceptions defined and used where appropriate?
  • Is exception handling consistent throughout the codebase?
  • Are exceptions logged with relevant context and stack trace information?
  • Are exceptions being grouped and categorized for easier analysis and resolution?

@codeclimate
Copy link

codeclimate bot commented Jul 12, 2023

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

View more on Code Climate.

@craigrva craigrva changed the base branch from master to dev-support/skipped-test-updates-2 July 14, 2023 17:54
@craigrva craigrva marked this pull request as ready for review July 14, 2023 17:54
@craigrva craigrva merged commit 67dc572 into dev-support/skipped-test-updates-2 Jul 14, 2023
0 of 10 checks passed
@craigrva craigrva deleted the pamatya/APPEALS-24128 branch July 14, 2023 17:55
amybids pushed a commit that referenced this pull request Jul 25, 2023
* ✨ Introduce method object CancelTasksAndDescendants

* ✨ Introduce rake task remediations:cancel_vrr_tasks_open_for_vre

* 🚚 Move VeteranRecordRequestsOpenForVREQuery into its own namespace

* Add some lint ignores to methods that will no need to change

* DupEp including schedule

* APPEALS-21118 error handling changes

* APPEALS-21118 removed fakes

* APPEALS-21118 removed unnecessary error handling

* APPEALS-21118 updated rspec

* APPEALS-21118 PacMan -> Pacman

* APPEALS-21118 fixed current_user in rspec

* Corrected validation on copies attribute of VbmsCommunicationPackage

* Correct unit test for VbmsDistribution to reflect optional communication package

* APPEALS-21118 fixed pacman service spec: participant_id to participantId

* updated failing tests. Green is Go.

* Add early return

* Remove mocks

* DB migration to add UUID columns to Pacman tables

* APPEALS-21118 fixed vbms factories

* APPEALS-24643 Added pacman_uuid column to comm package, distribution, and destination audit tables and functions

* APPEALS-21118 pacman service rspec changes

* APPEALS-21118 get_distribution_request in pacmanservice should take in int not string

* APPEALS-21118 pacmanservice spec: fixed get distribution tests by changing distribution id and communicationpackageid from string to int

* Audit tables updates

* Change get distro route to look up using pkid

* Revert "Audit tables updates"

This reverts commit d38eb98.

* Use different column name

* Update schema

* Minor refactoring

* Add missing commas

* missed another comma

* More commas

* CC Fixes

* Add pacman_uuid to factories

* pacman_uuid to uuid to ease transition

* Fix typo

* Alter fake

* Missed a word

* Fix distributions_controller_spec tests

* Try new mail_request_spec setup

* Update comm package factory

* Fix pacman_service_spec tests

* Refactor

* Update comm package and distros with pacman ids as uuids

* Remove UUID from destinations table since those just get lumped with distros in pacman

* Remove uuid from dest factory

* More tests

* APPEALS-21118 moved vbms package creation into begin block

* APPEALS-21118 initilialized PacmanApiError

* APPEALS-21118 removed chunk of comments

* Fix a spec failure

* APPEALS-21118 fixed vbms comm package factory

* Resolve some codeClimate errors

* Code Climate

* APPEALS-21118 changed rspec

* code climate

* APPEALS-21118 added 500 error to error code hash

* APPEALS-21118 moved package creation outside of begin block

* APPEALS-21118 package is created only if post request is successful

* cleanup

* APPEALS-21118 put code outside begin rescue block in else statement and added/updated test for unsuccessful execution of mailrequestjob

* Spec test tweaks

* Use bearer token

* APPEALS-21118 fixed vbms destination factory validations

* APPEALS-21118 fixed document_referenced document_version_reference_id

* hearings/APPEALS-21118 and APPEALS-21121 APPEALS-21123 (#18814)

* branch init

* Appeals-21123 updated create method in upload_vbms_document_controller to utilize distribution/destination params

* Appeals-21123 updated error.rb, providing a new error type that can be sent back to IDT client.

* linting changes to exiting lines of code. Added new error for use in vbms_document_upload_controller when expected params aren't included

* APPEALS-21123 created new mail_request class that will handle object creation and also keep controller thin.

* APPEALS-21118 created job file

* APPEALS-21118 added pacman calls

* APPEALS-21118 updated response

* APPEALS-21118 added error handling

* APPEALS-21118 extra logging and added rspec file

* APPEALS-21118 added fakes for vbms package, dist, and dist dest

* APPEALS-21118 updated factories and rspec

* APPEALS-21123 included activeModel valitations. provided Logic for validation within mailrequest.rb

* added conditional logic for param checking and object creation along with error logging.

* cleaned up controller code. leaving majority of logic to the new mail_request.rb workflow.

* logic implemented that creates a vbms_distribution and vbms_distribution_destination. currenlty raw JSON is being saved(no parsing of the values).

* Passed MailRequest object and VBMS document to MailRequestJob

* removed email/phone number param checks and validation logic.

* created factory to help with specs for mail_request workflow.

* removed the optional attribute on the belongs_to relationship expressed in the beginning of the file.

* Passed MailObject to MailObjectJob after successful VBMS document upload:

* Undid changes yet to be merged from APPEALS-21123

* Used uploaded_to_vbms_at property instead of processed_at

* Added tentative unit tests to UploadDocumentToVbmsJob

* Incorporated new recipient_info param

* Refactored to reflect change to array of multiple recipients

* Simplified workflow in anticipation of changes to AC

* inserted conditional logic. providing expected behavior as stated by the AC.

* chaged constant array to anticipate nested params.

* added test in controller to check for creation of mail req object

* factories for valid mail request object and invalid mail request object created.

* Refactored mail_request default value

* Added logging

* Refactored UploadVbmsDocumentController#create to be more DRY

* Refactored private methods

* Changed variable names

* Changed method names to be more descriptive

* Changed mail_request back to object instead of array of objects to meet new AC

* Completed unit test

* APPEALS-21123 provided functionality for multiple recipient_info parameters.

* APPEALS-21123 removed frozen array. made adjustments to init method. place create methods under the private keyword.

* APPEALS-21123 spec clean-up.

* Updated unit tests with instance and class doubles

* APPEALS-21118 updated perform method parameters

* APPEALS-21123 controller fixed to return distribution_ids along with message as JSON

* Fixed spacing in rails log message

* APPEALS-21123 made edit to missing_recipient_info error in file.

* added begin/ensure blocks. providing functionality that will allow code to continue even if an exception rises.

* updated logic in file adding and additional attribute to the accessor block.

* APPEALS-21123 added code to handle incomplete params.

* APPEALS-21123 added accessors. adjusted call method.

* APPEALS-21123 added code to handle incomplete params.

* APPEALS-21118 updated create_distribution with recipient and destination hashes

* APPEALS-21118 added comments to methods

* added comments to new code for possible future dev support.

* Refactored controller

* Abstracted validations into a shared concern to make available to MailRequest object

* APPEALS-21123 controller testing completed. Changes made to mail_request factory. MailRequest spec is created.

* Added comments

* spec updates, comment change in controller.

* method refactor

* Updated controller to validate copies and pass to MailRequestJob

* validation methods updated

* spec changes, All Green, appropriate codecoverage. edit to one of the validations in mail_request file.Update the factory for mail_request as well

* Changed name of method

* Use concern

* Merged APPEALS-21121 and APPEALS-21123 in UploadVbmsDocumentController

* Uncommented out arguments

* Refactored code in controller and fixed formatting of error messages

* Fixed issue of global variable in mail request validator

* Fixed so it only checks for recipient errors after mapping through all recipients instead of erroring out at first invalid request

* Implemented tap method to consolidate code

* Consolidated mail_requests and copies params into one payload to pass through workflow

* Condensed number of arguments for upload job into a parameter object

* Fixed line too long in distribution destination spec

* Removing instance variables to comply with reek

* Refactor params to resolve reek issues

* Rolled back refactoring changes

* Removed unnecessary method

* Fixed linting

* Reformated instance variables

* One last shot at fixing reek parameters issuegit add .

* Fixed error and updated spec

* Fixed spacing in base controller

* APPEALS-21118 added to rspec

* changes made to mail_request syntax.

* Updated spec to account for MailRequestJob queue

* Oops

* updated mail_request method to set the created_by_id attribute of a created vbms_distribution at the time of creation.

* APPEALS-21118 updated mail_request usage

* Created MailPackageConcern and refactored controller to implement concern

* Updated spec files to reflect introduction of MailRequestJob

* Refactored mail package concern to remove unnecessary included_do black

* Added created_by_id to mail package payload

* Convert mail requests to json instead of array of mail requests to json

* APPEALS-21118 fixed parameters

* APPEALS-21118 organized comments

* Updated spec file

* Changed comment

* APPEALS-21118 fakes->externalapi

* made rubocop changes in spec file.

* Remove deprecated URI.escape method

* Key name to camelCase

* APPEALS-21118 fixed code based on feedback

* provided changes to spec files per PR request. Also Fixed failing tests in MailRequestSpec.

* Add some lint ignores to methods that will no need to change

* APPEALS-21118 error handling changes

* APPEALS-21118 removed fakes

* APPEALS-21118 removed unnecessary error handling

* APPEALS-21118 updated rspec

* APPEALS-21118 PacMan -> Pacman

* APPEALS-21118 fixed current_user in rspec

* Corrected validation on copies attribute of VbmsCommunicationPackage

* Correct unit test for VbmsDistribution to reflect optional communication package

* APPEALS-21118 fixed pacman service spec: participant_id to participantId

* updated failing tests. Green is Go.

* Add early return

* Remove mocks

* APPEALS-21118 fixed vbms factories

* APPEALS-21118 pacman service rspec changes

* APPEALS-21118 get_distribution_request in pacmanservice should take in int not string

* APPEALS-21118 pacmanservice spec: fixed get distribution tests by changing distribution id and communicationpackageid from string to int

* CC Fixes

* APPEALS-21118 moved vbms package creation into begin block

* APPEALS-21118 initilialized PacmanApiError

* APPEALS-21118 removed chunk of comments

* APPEALS-21118 fixed vbms comm package factory

* APPEALS-21118 changed rspec

* APPEALS-21118 added 500 error to error code hash

* APPEALS-21118 moved package creation outside of begin block

* APPEALS-21118 package is created only if post request is successful

* APPEALS-21118 put code outside begin rescue block in else statement and added/updated test for unsuccessful execution of mailrequestjob

* Spec test tweaks

* Use bearer token

* APPEALS-21118 fixed vbms destination factory validations

* APPEALS-21118 fixed document_referenced document_version_reference_id

---------

Co-authored-by: Jonathan Cohen <cohen_jonathan@bah.com>
Co-authored-by: j-n-t-l <611441@bah.com>
Co-authored-by: Jeff Marks <jeff.t.marks@gmail.com>
Co-authored-by: Jonathan Cohen <121630615+JCohDev@users.noreply.github.com>
Co-authored-by: Matthew Thornton <ThorntonMatthew@users.noreply.github.com>

* Add back in UUIDs

* Handle cases where we get an unforeseen error code

* Fix test

* file deleted by mistake

* remove pdfjs_viewer-rails gem

* update pdfjs-dist

* add additional logging and configuration to PDFJS.getDocument behind feature toggle reader_get_document_logging

* jefftmarks/APPEALS-21125 (#18702)

* Created MailRequest object and passed from control to dispatch workflows:

* Changed name of method to create mail request distributions

* Condensed calls to params with a method

* Mocked up sending back distribution ids

* Added comments and logging

* Reformatted AmaAppealDispatch spec and added mail request examples

* Added comments

* Updated comments

* Updated workflow to pass multiple mail requests and copies attribute

* Refactored to mirror UploadDocumentToVbmsController

* Completed unit test for AmaAppealDispatch

* Refactored spec for LegacyAppealDisaptch

* Completed unit tets for LegacyAppealsDispatch and AmaAppealDispatch

* Refactored code to pass unit tests

* Completed unit tests for AppealsController

* Changed global variable

* Refactored with MailPackageConcern

* Removed mail package concern and moved to APPEALS-21121

* Updated unit tests after merging in MailRequest object and MailRequestJon

* Added check in spec file for invalid recipient info

* Reordered examples in spec file

* Refactored workflow to pass DecisionDocument into MailRequestJob

* Added columns to DecisionDocument and update reference columns after Vbms upload

* Updated polymorphic associations between CommPackage, VbmsUploadedDoc, and DecisionDoc

* Changed column names and added index for polymorphic document association for VbmsCommPackage

* Updated MailRequestJob to fit polymorphic association

* Remove byebug

* Update columns in audit tables and triggers

* Remove defunct columns

* Adjust comm package factory

* Updated spec for comm package and made polymorphic assoc not optional

* Fix a couple spec files

* Adjust AmaAppealDispatch spec

* Adjust BvaDispatchTask specs

* Ignore our new attrs on DecisionDocument

* Add all_dbs tag to LegacyAppealDispatch spec

* Break out notification type seeds to a before all

* Try forcibly cleaning up after legacy dispatch tests

* Oops, we're not paralellizing here

* Allow outcode items to wrap

---------

Co-authored-by: Matthew Thornton <ThorntonMatthew@users.noreply.github.com>
Co-authored-by: Matthew Thornton <99351305+ThorntonMatthew@users.noreply.github.com>

* Update Gemfile

* update pdfjs to 2.6.347

* 💡 Add to comment

* ♻️ Reference Constants::BENEFIT_TYPES instead of local constant

* ♻️ Extract factory for VRE business line

* ✏️ Fix typo

* MattT/APPEALS-24860: Add JWT Support to Package Manager Service (#18920)

* Remove TOKEN from default header

* Add JWT generation to pacman service

* Bring over base64url

* Tweak env vars

* Change comment

* Create JwtGenerator conncern

* Add concern file

* Remove comment

* Going to place SAML token into store in non-UTF-8

* Add env vars to Rails env configs

---------

Co-authored-by: Matthew Thornton <ThorntonMatthew@users.noreply.github.com>

* Remove use of ERB::Util.url_encode (#18930)

Co-authored-by: Matthew Thornton <ThorntonMatthew@users.noreply.github.com>

* Add back url var

* Fix spacing

* dev-support/APPEALS-24154 fix distribution spec tests (#18922)

* skipped duplicates in distribution_spec_deprecated

* remove skipped test referenced by APPEALS-24154

* added tests to distribution spec and skipped them in distribution deprecated

* final skip for deprecated spec, comments in distribution spec

* comments in by_docket_date spec, added distribution_concern_spec

* deleted distribution_spec_deprecated.rb

* refactoring push priority job spec

* more changes to push priority job spec

* another change to before/after blocks

* update comments

* attempt fix for appeal series issue spec

* modify distribution concern spec

* revert change to appeal series issue spec

* remove distribution concern spec as it isn't working in GHA

* Craig/distribution spec changes (#18905)

* skipped duplicates in distribution_spec_deprecated

* remove skipped test referenced by APPEALS-24154

* added tests to distribution spec and skipped them in distribution deprecated

* final skip for deprecated spec, comments in distribution spec

* comments in by_docket_date spec, added distribution_concern_spec

* deleted distribution_spec_deprecated.rb

* refactoring push priority job spec

* more changes to push priority job spec

* another change to before/after blocks

* update comments

* attempt fix for appeal series issue spec

* modify distribution concern spec

* revert change to appeal series issue spec

* remove distribution concern spec as it isn't working in GHA

* fix bug with legacy efolder sync notification job that was causing errors

* add guard to poll docketed legacy appeals job spec in case seed data exists already

* fix database cleaner bug in ama efolder sync job spec

* Dev support/appeals 24123 (#18919)

* fixed the first flakey test in intake_manager_spec

* Deleted no longer needed test

---------

Co-authored-by: Sean Craig <Craig_Sean@bah.com>
Co-authored-by: Sean Craig <110493538+seancva@users.noreply.github.com>

* Removing skip (#18892) (#18932)

* Removing skip

* APPEALS-24072: refactor spec

* Appeals-24072: changing the benefit type

* removing commented

Co-authored-by: Prajwal Amatya <122557351+pamatyatake2@users.noreply.github.com>

* fix user model skipped test

* testing flaky test (#18844)

* testing flaky test

* name screenshot with name from example

* removing bang where not necessary

* Adding a logger to see if we can find why it fails randomly

* spec failure timing issue

* Appeals-24520: fixing the flaky spec for vacant and remand

* replacing refresh if needed method with reload_case_detail_page

* uncommenting let comment

* removing accidental commit

* fixing spec failure

* Fix uuid not being an attribute of string

* 🔊 Log time elapsed

* ♻️ Extract constant

* Incremental fixes

* ♻️ Refactor tests

* More tweaks

* Loop over distros in response

* MattT/19983-fixes (#18947)

* Adjust destination hash creation

* Alter get_recipient_hash

* Change hash syntax

* Pass in comm package uuid as ID

* Fix endpoint

* Fix transaction

* Add comment

* Paranoia mode

* Another backup plan

* Comments

* More paranoia

---------

Co-authored-by: Matthew Thornton <ThorntonMatthew@users.noreply.github.com>

* 🔊 Log total tasks for cancellation

* 🔊 Log cancelled task ids

* 🔊 Log errored cancellations

* ♻️ Extract method

* 🐛 Task #descendants already includes self

* 🐛 Only include open tasks in total

* 🐛 Only log cancellable (open) task ids

* ♻️ Extract method

* ♻️ Replace query with temp

* 🔊 Log total cancelled

* ♻️ Slide statements into block

* ♻️ Combine logging of cancellable tasks before/after into single method

* ♻️ Rearrange method definitions

* ♻️ Rename method

* 💡 Add comments

* removing skip and making test work (#18943)

* Fixing the flaky test (#18944)

* Remove rspec skip: "flake" (#18928)

In the process of maintaining a better testing suite we are attempting
to remove all rspec tests that are skipped.

This specific instance there was a skip that is no longer needed as
the test does not fail. We can also remove supplemental claims being
created as they aren't relevant to the test.

* Fix format_response

* Log error if response body isn't able to be parsed as JSON

* Add distro id to error log

* TYLERB/APPEALS-24082: Remove task_filter_spec.rb flakey test tag (#18935)

* Removed flakey tag from a test in task_filter_spec and a test in hearings_controller_spec.

* Updated the appeal_series_issue_spec.

* Changed expect to properly match the subject for one test.

* Removed an expect statement that was no longer valid.

* 🔊 Append logs to stdout

* 👔 Ensure PaperTrail versions reflect appropriate whodunnit and request_id for cancelled tasks

* Remove flake test skip for case_details_spec.rb

In the process of maintaining a better testing suite we are attempting
 to remove all rspec tests that are skipped.

This specific instance there was a skip that is no longer needed as
the test does not fail when ran. Upon further research it looks like
the pagination has been fixed and now allows the test to work
correctly.

* Add back pdfjs_viewer-rails gem library (#18958)

* put back pdfjs_viewer-rails

* add routes back in

* add comment for gem

* Pamatya/appeals 24085 (#18966)

* APPEALS-24085: removing skip

* APPEALS-24150: flaky has seems to fix by itself

* fix certification model flaky test (#18977)

* 🚨 Lint

* ✅ Fix broken spec

* Craig/appeals 24754 (#18976)

* refactor test to use factories instead of Model.create, fix associations

* remove hardcoded CSS IDs

* fix lint

* tweaks to tests with failures in GHA

* Add openapi spec for pacman

* init upload examples

* recipient type is absent

* First name

* Last name

* Treat lines as errors

* addresses

* Add to other upload

* Other upload

* half of error scenarios

* Added routes to outcode

* error cleanup

* Tweaks

* Revert accidental commit to master

This reverts commit 92d56fe.

* removing flake test (#18982)

* removing flake test

* removing commented code

* removing typo and nocov

* removing commented code

* Ensured original responses show in dropdown for swagger ui

* Fix spelling error

VLJs are reporting that their Unassigned tabs are misspelled as
"Unassgined"

* Reinstate MTV changes

* Removed the skip tag from docket_spec.rb spec test (#18984)

* Revert

* Craig/appeals 24719 (#18987)

* modify test data and setup

* fix hearings controller spec assertion

* replace array sorting with match_array in dispatch task spec where applicable

* added comment for why time is 11:30pm

* Fix flake spec "access the appeal's case details" (#18981)

* Update MAC_INTEL.md (#18997)

* Update MAC_INTEL.md

* Update MAC_INTEL.md

* Update MAC_INTEL.md

* update setup scripts

* Update MAC_INTEL.md

* Remove deprecated stats specs - APPEALS/25431 (#18998)

* Remove obsolete Dispatch_stats specs

The dispatch_stats logic is deprecated and is now being fully deleted.
We can remove the specs as part of that process.

* Remove certification_stats specs

The certification_stats logic is deprecated and is now being fully deleted.
We can remove the specs as part of that process.

* Removing skip made this test pass (#18993)

* Removing skip made this test pass

* Adding puts to see what value does response body has

* testing database result

* testing database result

* running db cleaner before to make sure hearing day is always contains 1 and 2

* resetting Pk in hearing table before all

* revert change to non-spec file

* update m1 setup instructions (#19005)

* update m1 setup instructions

* add how to determine procssor type

* remove checks for cache values and change from call_original to return an obj (#19010)

* fix potentially flaky finds (#19014)

* ✨ Introduce method object CancelTasksAndDescendants

* ✨ Introduce rake task remediations:cancel_vrr_tasks_open_for_vre

* 🚚 Move VeteranRecordRequestsOpenForVREQuery into its own namespace

* 💡 Add to comment

* ♻️ Reference Constants::BENEFIT_TYPES instead of local constant

* ♻️ Extract factory for VRE business line

* ✏️ Fix typo

* 🔊 Log time elapsed

* ♻️ Extract constant

* ♻️ Refactor tests

* 🔊 Log total tasks for cancellation

* 🔊 Log cancelled task ids

* 🔊 Log errored cancellations

* ♻️ Extract method

* 🐛 Task #descendants already includes self

* 🐛 Only include open tasks in total

* 🐛 Only log cancellable (open) task ids

* ♻️ Extract method

* ♻️ Replace query with temp

* 🔊 Log total cancelled

* ♻️ Slide statements into block

* ♻️ Combine logging of cancellable tasks before/after into single method

* ♻️ Rearrange method definitions

* ♻️ Rename method

* 💡 Add comments

* 🔊 Append logs to stdout

* 👔 Ensure PaperTrail versions reflect appropriate whodunnit and request_id for cancelled tasks

* 🚨 Lint

* ✅ Fix broken spec

* fix potentially flaky finds

---------

Co-authored-by: Jeremy Croteau <jeremiah.croteau@va.gov>
Co-authored-by: Raymond Hughes <131811099+raymond-hughes@users.noreply.github.com>

* PR Template Fixes

* modify formatting, add notes and foreword (#19015)

* modify formatting, add notes and foreword

* add missing parenthesis

* Add a comment

* Add another comment

---------

Co-authored-by: Jeremy Croteau <jeremiah.croteau@va.gov>
Co-authored-by: Matthew Thornton <ThorntonMatthew@users.noreply.github.com>
Co-authored-by: Ronald Wabukenda <ronald.wabukenda@va.gov>
Co-authored-by: j-n-t-l <611441@bah.com>
Co-authored-by: Craig Reese <109101548+craigrva@users.noreply.github.com>
Co-authored-by: Jeff Marks <jeff.t.marks@gmail.com>
Co-authored-by: Jonathan Cohen <cohen_jonathan@bah.com>
Co-authored-by: Marc Steele <Marc.Steele@va.gov>
Co-authored-by: Ron Wabukenda <130374706+ronwabVa@users.noreply.github.com>
Co-authored-by: Matthew Thornton <99351305+ThorntonMatthew@users.noreply.github.com>
Co-authored-by: Jonathan Cohen <121630615+JCohDev@users.noreply.github.com>
Co-authored-by: Matt Roth <roth_matthew@bah.com>
Co-authored-by: jefftmarks <106996298+jefftmarks@users.noreply.github.com>
Co-authored-by: Sean Craig <Craig_Sean@bah.com>
Co-authored-by: Sean Craig <110493538+seancva@users.noreply.github.com>
Co-authored-by: Prajwal Amatya <122557351+pamatyatake2@users.noreply.github.com>
Co-authored-by: Clay Sheppard <csheepy@gmail.com>
Co-authored-by: Matt Roth <mattcroth@gmail.com>
Co-authored-by: Drew Hadley <50673809+VandelayUtd@users.noreply.github.com>
Co-authored-by: 631583 <daniel.mage@va.gov>
Co-authored-by: Brandon Lee Dorner <brandonleedorner@gmail.com>
Co-authored-by: Tyler Broyles <109369527+TylerBroyles@users.noreply.github.com>
Co-authored-by: Brandon Dorner <brandondorner@yahoo.com>
Co-authored-by: Lauren Berry <95879805+lberrytake2@users.noreply.github.com>
Co-authored-by: raymond-hughes <raymond.hughes2@va.gov>
Co-authored-by: Craig Reese <Reese_Craig@bah.com>
Co-authored-by: Raymond Hughes <131811099+raymond-hughes@users.noreply.github.com>
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.

2 participants