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

Completed Tabs link code modifications #22192

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

divyadasari-va
Copy link
Contributor

@divyadasari-va divyadasari-va commented Jul 16, 2024

Resolves Correspondence Queue: Completed Tabs link

Description

  1. Login to caseflow with INBOUND_OPS_TEAM_ADMIN_USER
  2. Click Your Queue
  3. Select Correspondence Cases from switch view dropdown
  4. Go to completed tab
  5. Select any correspondence by clicking the link from Veteran Details.
  6. This should redirect to the correspondence detail page.
  7. Verify the veteran file number, that should match according to the UUID you select.
  8. Repeat steps from 2 to 7 for Your correspondence by login with INBOUND_OPS_TEAM_MAIL_INTAKE_USER

Acceptance Criteria

  • When an Inbound Ops Team user or Inbound Ops Team Superuser clicks on a Correspondence in the Completed tab on Your Correspondence the user is directed to that correspondence's Details page at /queue/correspondence/:correspondence_uuid

  • When an Inbound Ops Team Superuser or Inbound Ops Team Supervisor user clicks on a Correspondence in the Completed tab on Correspondence Cases the user is directed to that correspondence's Details page at /queue/correspondence/:correspondence_uuid

Testing Plan

  1. Go to Jira Issue/Test Plan 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 (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?

@divyadasari-va divyadasari-va marked this pull request as ready for review July 16, 2024 19:07
@HunJerBAH HunJerBAH merged commit e59243f into feature/APPEALS-34965 Jul 17, 2024
14 of 17 checks passed
@HunJerBAH HunJerBAH deleted the Div/APPEALS-42521 branch July 17, 2024 13:54
Rnmarshall93 pushed a commit that referenced this pull request Jul 24, 2024
* Completed Tabs link code modifications

* Modified the code changes as commented
Rnmarshall93 pushed a commit that referenced this pull request Jul 25, 2024
* Completed Tabs link code modifications

* Modified the code changes as commented
cacevesva added a commit that referenced this pull request Jul 26, 2024
…an Appeal (#22262)

* backend serializer updated, regressions fixed

* pushing up correspondence timeline

* Fixed import issue.

* added correspondence versions of case timeline. fixed some data appearing.

* changes to timeline

* Fixed the extra line issue

* additional changes

* additional formatting fix

* additional fixes, refined taskrows

* task dropdown added

* checkpoint for testing

* lenting fixes

* fff

* Fixed organization having the ability to edit tasks.

* Removed stray console logs

* fixed assigned_to not being displayed. lint fixes.

* linting fixes

* css improvements

* added label method to give correct tasks

* fixed show instructions bug

* component cleanup

* refactored out unused logic

* fixed CSS, added missed AC point.

* removed binding pry

* Correspondence CSS Issues - Using Glamor instead of classnames (#22173)

* removed all glamor css.

* fixed linting.

* add Errno::EISDIR to clear_cache rescue block (#22114)

* APPEALS-51230: Add tmp/examples.txt to Github Actions artifacts (#22124)

* add examples.txt to gha workflow

* rename examples and bullet files even if failure

* APPEALS-42516 - CSS Updates (#22191)

* APPEALS-42516 - CSS Updates

* APPEALS-42516 - Additional CSS for View all link

* Deleting empty rulesets for linter

* Lintagain

* &nsp removal

---------

Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>

* Completed Tabs link code modifications (#22192)

* Completed Tabs link code modifications

* Modified the code changes as commented

* verbiage change (#22217)

* APPEALS-51992: Veteran Name Does Not update when file number changed (#22218)

* return the updated serialized correspondence when updating

* removed unused veteranInformation (#22221)

* made edit to review form so that only supervisors could edit the VA DOR date (#22227)

* APPEALS-51383: Resolve Bugs with Inbound Ops team Queues on Switch Views Dropdown (#22230)

* added correspondence dropdown checks on the user model

* refactored Switch Views dropdown to populate values from backend

* removed unused props

* added missing param that was passed to method.

* APPEALS-51552: Test Appeal Organization tables (#22237)

* filtered attorney tasks to not include correspondence

* added correspondence filtering for other Appeal Queues.

* Justin/APPEALS-50741 (#22219)

* overriding method for all caseflow users to access correspondence details page

* Adding tests for other caseflow users on correspondence details page

* updating lint failure

* Linting fix

* adding back true, hopefully fixing lint errors

* adding temporary under_constructions task urls for merge and split tasks. (#22256)

* overriding method for all caseflow users to access correspondence details page

* Adding tests for other caseflow users on correspondence details page

* updating lint failure

* Linting fix

* adding back true, hopefully fixing lint errors

* adding temporary under_constructions task urls for merge and split tasks.

* Ki/APPEALS-42518 - All users: Can view correspondence record status (#22226)

* APPEALS-32518 - Added recordStatus to page pathways

* APPEALS-42518 - Updated Correspondence Status pathways, controller

* APPEALS-42518 - Remap status to live in correspondence model

* Remove unedited file linting changes

* Second filechange

* APPEALS-42518 - Updated RSpecs

* Linting

---------

Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>

* Sivakesh/APPEALS-42522 - Completed Mail Tasks (#22254)

* #42522 - correspondence mail tasks

* #42522 - correspondence mail tasks via serializer

* #42522 - Update CSS styling for frontend

* #42522 - specs

* #42522 - jest tests

* #42522 - fixed some lint issues

* #42522 - css and AC2

* #42522 - css and AC2

* #42522 - filtered correspondence mail tasks

* Div/appeals 50296 (#22266)

* Fix for pdf not loading in review package task

* Added a comment line

* Rubocp fix

* Codeclimite fixes

---------

Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>

* Removed the Inbound ops Team from rejected_orgs (#22284)

* fixed missing comma breaking code

* Completed Tabs link code modifications (#22192)

* Completed Tabs link code modifications

* Modified the code changes as commented

* Justin/APPEALS-50741 (#22219)

* overriding method for all caseflow users to access correspondence details page

* Adding tests for other caseflow users on correspondence details page

* updating lint failure

* Linting fix

* adding back true, hopefully fixing lint errors

* Ki/APPEALS-42518 - All users: Can view correspondence record status (#22226)

* APPEALS-32518 - Added recordStatus to page pathways

* APPEALS-42518 - Updated Correspondence Status pathways, controller

* APPEALS-42518 - Remap status to live in correspondence model

* Remove unedited file linting changes

* Second filechange

* APPEALS-42518 - Updated RSpecs

* Linting

---------

Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>

* Sivakesh/APPEALS-42522 - Completed Mail Tasks (#22254)

* #42522 - correspondence mail tasks

* #42522 - correspondence mail tasks via serializer

* #42522 - Update CSS styling for frontend

* #42522 - specs

* #42522 - jest tests

* #42522 - fixed some lint issues

* #42522 - css and AC2

* #42522 - css and AC2

* #42522 - filtered correspondence mail tasks

* removed unused code. fixed jest tests.

* changed if to unless

* changed styling of attribute for assigned_to

* removed whitespace

* Khalin/appeals 42564 v3 (#22304)

* WIP

* Modified few changes for this relations to work

* added create logic in intake

* cleaned up associations

* Associations and up/down migrations working

* WIP Failing tests

* Fixed spec/lib/helpers/association_wrapper_spec.rb

* Rubocop fixes

* Updated migration file

* Fixing migration error

* Rubocop fix

* All tests passing

---------

Co-authored-by: divyadasari-va <divya.dasari@va.gov>
Co-authored-by: HunJerBAH <Jeremy.Hunton@va.gov>
Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>
Co-authored-by: Christopher Aceves <christopher.aceves@va.gov>

* Vinner57/appeals 42526 Correspondence and Appeal Tasks: Can view existing appeals related to the Veteran (#22261)

* Adding the veteran related changes in correspondence details

* Adding the changes to correspondence serializer

* Adding the changes to correspondence details for the veteran information

* fix for code climate and table border

* #50661 - Jest tests for existing appeals

* #50661 - undo yarn lock file

* #42526 - css, jest tests, lint and merge conflicts

* #42526 - lint and jest fixes

* addressing PR comments

* fix rubocop

* #42526 - removed AptUtil usages

---------

Co-authored-by: psivakeshva <sivakesh.pachipulusu@va.gov>
Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>

* Sivakesh/APPEALS-42522 - Completed Mail Tasks (#22303)

* #42522 - correspondence mail tasks

* #42522 - correspondence mail tasks via serializer

* #42522 - Update CSS styling for frontend

* #42522 - specs

* #42522 - jest tests

* #42522 - fixed some lint issues

* #42522 - css and AC2

* #42522 - css and AC2

* #42522 - filtered correspondence mail tasks

* #52600 - 508 compliance code fix

* #52600 - 508 compliance code fix

---------

Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>

* APPEALS-49005 - Bugfix: Reassign Correspondence Allows Reassignment to Admins (#22297)

* APPEALS-49005 - Added non_admin function for more limited user list

* Unneeded Prop

* Update admin check

---------

Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>

* APPEALS-44287: Excluding disposition held and select that appeal for distribution  (#22277)

* first run at an SQL query removing duplicate appeals from distribution

* code refactor and excluding disposition held and select that appeal for distribution

* automated test for the duplicate hearing bug

* fix rubocop offense SpaceInsideBlockBraces

---------

Co-authored-by: Sean Parker <Sean.Parker3@va.gov>
Co-authored-by: samasudhirreddy <sudhirreddy.sama@va.gov>

* Kev ma/appeals 51520 seeddata fix (#22307)

* Removed non valid ce api documents types from uat

* Added ce api valid vbms document type ids for uat

---------

Co-authored-by: HunJerBAH <99915461+HunJerBAH@users.noreply.github.com>

* fixed css on margin for text

* Vinner57/appeals 42526 Correspondence and Appeal Tasks: Can view existing appeals related to the Veteran (#22261)

* Adding the veteran related changes in correspondence details

* Adding the changes to correspondence serializer

* Adding the changes to correspondence details for the veteran information

* fix for code climate and table border

* #50661 - Jest tests for existing appeals

* #50661 - undo yarn lock file

* #42526 - css, jest tests, lint and merge conflicts

* #42526 - lint and jest fixes

* addressing PR comments

* fix rubocop

* #42526 - removed AptUtil usages

---------

Co-authored-by: psivakeshva <sivakesh.pachipulusu@va.gov>
Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>

* fixed linting error.

* fixed tests

* lint fix

* fixed linting issue

---------

Co-authored-by: Ryan Marshall <rnmarshall1993@gmail.com>
Co-authored-by: Rnmarshall93 <110805785+Rnmarshall93@users.noreply.github.com>
Co-authored-by: Craig Reese <109101548+craigrva@users.noreply.github.com>
Co-authored-by: Ki Mau <ki.mau@va.gov>
Co-authored-by: cacevesva <109166981+cacevesva@users.noreply.github.com>
Co-authored-by: divyadasari-va <135847343+divyadasari-va@users.noreply.github.com>
Co-authored-by: HunJerBAH <99915461+HunJerBAH@users.noreply.github.com>
Co-authored-by: sulak-j <95875751+sulak-j@users.noreply.github.com>
Co-authored-by: psivakeshva <168677299+psivakeshva@users.noreply.github.com>
Co-authored-by: Dev-KRedd <134650238+Dev-KRedd@users.noreply.github.com>
Co-authored-by: divyadasari-va <divya.dasari@va.gov>
Co-authored-by: HunJerBAH <Jeremy.Hunton@va.gov>
Co-authored-by: Christopher Aceves <christopher.aceves@va.gov>
Co-authored-by: vinner57 <128258952+vinner57@users.noreply.github.com>
Co-authored-by: psivakeshva <sivakesh.pachipulusu@va.gov>
Co-authored-by: Sean Parker <Sean.Parker3@va.gov>
Co-authored-by: samasudhirreddy <sudhirreddy.sama@va.gov>
Co-authored-by: Kevma50287 <104021955+Kevma50287@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