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

49620 and 49626 merge resolutions #23489

Draft
wants to merge 641 commits into
base: main
Choose a base branch
from

Conversation

ThorntonMatthew
Copy link
Contributor

Resolves Jira Issue Title

Description

Please explain the changes you made here.

Acceptance Criteria

  • Code compiles correctly

Testing Plan

  1. Go to Jira Issue/Test Plan Link or list them below
  • For feature branches merging into main: Was this deployed to UAT?

Frontend

User Facing Changes

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

Storybook Story

For Frontend (Presentation) 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?

jefftmarks and others added 30 commits November 9, 2023 10:56
…s/APPEALS-34517

hearings/APPEALS-34517 and breedbah/APPEALS-34669
…as/APPEALS-34673

akonhilas/APPEALS-34673
…as/APPEALS-34880

akonhilas/APPEALS-34880
mounikamy and others added 29 commits September 20, 2024 14:14
…scriber (#22873)

* APPEALS-43265 added new transcription subsection for webex hearings

* APPEALS-43265 added a new column to transcriptions table

* APPEALS-43265 validating return dates and formatted dates in the frontend

* APPEALS-43265 wrote jest tests

* APPEALS-43265 temporary code to easily create transcriptions for testing purposes

* APPEALS-43265 added comments

* APPEALS-43265 fixed some tests

* APPEALS-43265 fixed feature tests

* APPEALS-43265 added comment

* APPEALS-43265 merged in jest test fix

* adding the transcription details

* added mp3 filetype in query

* fix lint error

* fix lint error

* Fix the specs

* fix lint error

* fix rspec

---------

Co-authored-by: Minhazur Rahaman <[email protected]>
Co-authored-by: minhazur9 <[email protected]>
Co-authored-by: mchbidwell <[email protected]>
commit 701ed4a
Merge: 608ac5e e34da00
Author: Craig Reese <[email protected]>
Date:   Mon Sep 16 11:27:31 2024 -0500

    Merge branch 'master' of https://github.com/department-of-veterans-affairs/caseflow into dev-support/APPEALS-54874

commit 608ac5e
Author: Craig Reese <[email protected]>
Date:   Mon Aug 26 08:16:13 2024 -0500

    require ruby-oci8 in config/boot.rb to fix SIGV fault

commit 6e7c7aa
Merge: 2a6a28e 6dd9870
Author: Craig Reese <[email protected]>
Date:   Fri Aug 23 07:00:27 2024 -0500

    Merge branch 'master' into dev-support/APPEALS-54874

commit 2a6a28e
Author: Craig Reese <[email protected]>
Date:   Thu Aug 15 13:27:23 2024 -0500

    update minimum version in gemfile and ran bundle install (#22503)
* APPEALS-43242 new PR

* APPEALS-43242 push space

* APPEALS-43242 update files

* APPEALS-43242 New rails

* APPEALS-43242 add filter changes

* APPEALS-43242 lint

* APPEALS-43242 lint

* APPEALS-43242 disable lint

* APPEALS-43242 remove lint

* APPEALS-43242 lint

* APPEALS-43242 lint

* APPEALS-43242 update schema

* APPEALS-43242 update specs

* APPEALS-43242 update statuses on tabs

* APPEALS-43242 update copy.json

* APPEALS-43242 add to copy.json

* APPEALS-43242 gemfile update
* APPEALS-43265 added new transcription subsection for webex hearings

* APPEALS-43265 added a new column to transcriptions table

* APPEALS-43265 validating return dates and formatted dates in the frontend

* APPEALS-43265 wrote jest tests

* APPEALS-43265 temporary code to easily create transcriptions for testing purposes

* APPEALS-43265 added comments

* APPEALS-43265 fixed some tests

* APPEALS-43265 fixed feature tests

* APPEALS-43265 added comment

* APPEALS-43265 merged in jest test fix

* adding the transcription details

* added mp3 filetype in query

* fix lint error

* fix lint error

* Fix the specs

* fix lint error

* fix rspec

* fix rubocop issues

* fix for spec and trascription details

---------

Co-authored-by: Minhazur Rahaman <[email protected]>
Co-authored-by: minhazur9 <[email protected]>
Co-authored-by: mchbidwell <[email protected]>
* APPEALS-43242 new PR

* APPEALS-43242 push space

* APPEALS-43242 update files

* APPEALS-43242 New rails

* APPEALS-43242 add filter changes

* APPEALS-43242 lint

* APPEALS-43242 lint

* APPEALS-43242 disable lint

* APPEALS-43242 remove lint

* APPEALS-43242 lint

* APPEALS-43242 lint

* APPEALS-43242 update schema

* APPEALS-43242 update specs

* APPEALS-43242 update statuses on tabs

* APPEALS-43242 update copy.json

* APPEALS-43242 add to copy.json

* APPEALS-43242 gemfile update

* APPEALS-43242 add conditional updates

* APPEALS-43242 add interpolation updates

* APPEALS-43242 update tests

* APPEALS-43242 check failing tests

* APPEALS-43242 fix lint
* APPEALS-59050 added links to the switch view dropdown for hearings and transcription users to navigate

* APPEALS-59050 fixed some broken tests
* APPEALS-59041 update titles

* APPEALS-59041 update tests

* APPEALS-59041 update lint
* APPEALS-43187 Transcription files Complete tab

* APPEALS-43187 Jest and spec fixes

* APPEALS-43187 Showed up Completed tab data and test fixes

* APPEALS-43187 Changed ifels to when case statement in transcription file controller

* APPEALS-43187 Jest test fix
* Create job for updating status field for transcription package

* Made use of constant

* Addressed pr comment
…cified endpoint folder (#22761)

* Modified box_services and add download file

* modified dowload services

* change box_service

* Modified type to permit in thanscription_file table

* fix lint error

* add spec file

* change path to S3

* Modified Download_job to call from Monitor_job

* Some lint fixes

* Another lint fix

* Modified monitor job and download job

* modified spec files

* change va_box_download_job

* modifed test and job

* Update spec files and change job

* add transcription_id in Transcription_file table when create a new record

* fix spec errors

* fix spec issues

* modified job

* Modified legacy_hearing

* Address some namespace issues and some lint issues

* Replace log_error in controller since it isn't defined

* Fix migrations

* Adjust tests

* Stop execution if transcription for hearing cannot be found

* Revert schema

---------

Co-authored-by: Matthew Thornton <[email protected]>
Co-authored-by: Matthew Thornton <[email protected]>
…ils task snapshot (#23131)

* Add ReviewTranscriptTask and task actions

* Add default instructions to ReviewTranscriptTask

* Add task instructions to COPY file and fix style errors

* Test: ReviewTranscriptTask creation

* rubcop style fixes

---------

Co-authored-by: William Medders <[email protected]>
* APPEALS-59937 init commit

* APPEALS-59937 remove space

* APPEALS-59937 finish migration file

* APPEALS-59937 fix hearing validation

* APPEALS-59937 update transcriptions seeds

* APPEALS-59937 remove self.ignore

* APPEALS-59937 add space

* APPEALS-59937 remove space

* APPEALS-59937 remove lint

* APPEALS-59937 remove lint

* APPEALS-59937 update transcription_work_order_spec.rb

* APPEALS-59937 check tests

* APPEALS-59937 wait for alert

* APPEALS-59937 update transcription_files seed file

* APPEALS-59937 return to original state

* APPEALS-59937 update hearing model

* APPEALS-59937 add legacy association

* APPEALS-59937 remove trailing space

* APPEALS-59937 fix first test

* APPEALS-59937 update migration file

* APPEALS-59937 add polymorphic for legacy hearing

* APPEALS-59937 remove comment

* APPEALS-59937 update spec

* APPEALS-59937 update download_job_spec

* APPEALS-59937 add magic comment

* APPEALS-59937 update repo

* APPEALS-59937 update tests

* APPEALS-59937 remove byebug

* APPEALS-59937 remove space

* APPEALS-59937 update test
* Create Review Transcript task in the Hearing Admin queue

* Update download job

* Add change about the comments

* Fix lint error

* fix spec files

---------

Co-authored-by: mchbidwell <[email protected]>
* Added new tab called All Transcription

* fixing jest failure

* update transcription file declaration

* Update transcription_file.rb

---------

Co-authored-by: mchbidwell <[email protected]>
* WIP search bar for transcription file dispatch

* Fixed a bug where the filter params where not being properly updated in the get params if there was more than one filter present due to overwritten filter params during the QueueTable deep linking.

* APPEALS-49237 - Fix some issues with front end searching on transcription dispatch tabs

# Conflicts:
#	client/app/hearings/components/TranscriptionFileDispatchTabs.jsx

* APPEALS-49237 - Implement working search for hearings on the backend

* APPEALS-49237 - Load search string from URL params

* APPEALS-49237 - Update rspecs for searches

* APPEALS-49237 - Test fixes that started to fail for some random reason

* APPEALS-49237 - Lint fix and snapshot update

* APPEALS-49237 - Fixing a bug and removing a puts

* APPEALS-49237 - Fix for broken spec

* APPEALS-49237 - Apply search changes to new all files tab

---------

Co-authored-by: William Medders <[email protected]>
Co-authored-by: = <[email protected]>
* Pass task default instructions as an array

* Account for polymorphic association on Transcript

* WIP ErrorsFoundAndCorrectedModal

* add css classes for form control file input

* add routing logic for the ErrorsFoundAndCorrectedModal action to QueueApp

* add logic to handle disable/enable of submit button on modal

* add comments to the submit function

* format request params for submit

* jest test for ErrorsFoundAndCorrectedModal

* reorganize modal to live in queue dir

* use scss color variables instead of hex strings

* fix hex value for linter

* change file input background color

---------

Co-authored-by: William Medders <[email protected]>
Co-authored-by: Michael Bidwell <[email protected]>
* No errors found upload transcript to VBMS modal

* Add jest test

* Fix error when failt and put placeholder in textarea field

* remove imprt

* reduce method in the controller

* empty space below a return clause and indentation fix

* merge with feature branch

---------

Co-authored-by: Michael Bidwell <[email protected]>
… Work Order file download (#23048)

* APPEALS-43187 Transcription files Complete tab

* APPEALS-43187 Jest and spec fixes

* APPEALS-43187 Showed up Completed tab data and test fixes

* create a bottom to download zip file and change the color when overdue

* APPEALS-43268 make adjustments

* APPEALS-43268 fix params

* APPEALS-43268 fix params in .rb

* APPEALS-43268 fix associations

* APPEALS-43268 remove byebug

* APPEALS-43268 firxed WO Details

* APPEALS-43268 add api call for file download

* APPEALS-43268 add file-saver dependency

* APPEALS-43268 fix lint

* APPEALS-43268 add route

* APPEALS-43268 add frontend functionality

* APPEALS-43268 update snapshots

* APPEALS-43268 remove byebug

* APPEALS-43268 update WorkOrderDetails.test.js

* APPEALS-43268 lint

* APPEALS-43268 lint

* APPEALS-43268 add file-saver

* APPEALS-43268 add file-sever via npm

* APPEALS-43268 remove console.log

* APPEALS-43268 fix status

* APPEALS-43268 test file path

* APPEALS-43268 comment file-saver

* APPEALS-43268 use different method

* APPEALS-43268 transcription_files_controller.rb

* APPEALS-43268 update snapshot

* APPEALS-43268 fix more tests

* APPEALS-43268 change to get file from s3

* APPEALS-43268 remove trailing space

* APPEALS-43268 update snapshot

* APPEALS-43268 remove redundancy

* APPEALS-43268 remove file-saver

---------

Co-authored-by: Kamala Madamanchi <[email protected]>
Co-authored-by: breedbah <[email protected]>
Co-authored-by: breedbah <[email protected]>
…bs (#23365)

* resolve conflicts

* fix jest tests

* fix jest tests

---------

Co-authored-by: mounikamy <[email protected]>
Co-authored-by: Michael Bidwell <[email protected]>
#23405)

* Create entry on Case Details timeline for Review Transcript task: Errors Found and Corrected

* Modified controller with all the instructions

* add functionallity to submit action

* Add modification to timeline

* fix test failure

* fix issue in ErrorsFoundAndCorrectedModal

* update snapshot

* modified snap file

* remove vbms_ext_claim table from schema.rb

---------

Co-authored-by: Michael Bidwell <[email protected]>
Copy link

codeclimate bot commented Nov 13, 2024

Code Climate has analyzed commit 78e2d14 and detected 95 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 69
Duplication 6
Security 14
Bug Risk 6

View more on Code Climate.

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.