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

Caceves/appeals 46003 #21661

Merged
merged 3 commits into from
May 16, 2024
Merged

Caceves/appeals 46003 #21661

merged 3 commits into from
May 16, 2024

Conversation

cacevesva
Copy link
Contributor

@cacevesva cacevesva commented May 15, 2024

Resolves Jira Issue Title

Description

Add super user and correct permissions for inbound ops team mail user.
Also prevents VA_DOR from being edit from Super User or Regular user etc

Acceptance Criteria

  • Code compiles correctly

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?

Copy link

codeclimate bot commented May 15, 2024

Code Climate has analyzed commit 89bff5f and detected 23 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 14
Security 1
Complexity 6
Performance 2

View more on Code Climate.

@cacevesva cacevesva changed the base branch from master to feature/APPEALS-41477 May 15, 2024 22:44
@cacevesva cacevesva changed the base branch from feature/APPEALS-41477 to feature/APPEALS-13579-v1 May 16, 2024 16:36
@cacevesva cacevesva changed the base branch from feature/APPEALS-13579-v1 to feature/APPEALS-41477 May 16, 2024 16:46
@cacevesva cacevesva marked this pull request as ready for review May 16, 2024 18:39
@cacevesva cacevesva merged commit e8ffa74 into feature/APPEALS-41477 May 16, 2024
10 of 16 checks passed
@cacevesva cacevesva deleted the caceves/APPEALS-46003 branch May 16, 2024 18:39
cacevesva added a commit that referenced this pull request May 31, 2024
* Ki/APPEALS-41707 - Intake: Update and remove fields (#21473)

* APPEALS-41707 - Functionality and some CSS

* APPEALS-41707 - Updates

* APPEALS-41707 - Unrelated Specs and Correspondence CSS Lint fixes

* APPEALS-41707 - Additional Linting

* APPEALS-41707 - More Clean up

* APPEALS-42281 - displaying NOD of correspondence in review package page (#21528)

* APPEALS-42281 - displaying NOD of correspondence in review package page

* fixing package document type alignment

* Khalin/appeals 41705 (#21450)

* WIP

* VA DOR update

* VA DOR date text area working as intended

* Functionality working as intended

* Styling

* CPM info removed

* Fixed some failing tests

* WIP

* VA DOR Read Only Styling

* Edit CMP Test Passing

* Fix Jest Job Test

* Jest test fix WIP

* Jest test fix WIP #2

* ReviewForm.test.js Provider Store Update

* Styling

* style

* styling

* remove unused

---------

Co-authored-by: vinner57 <128258952+vinner57@users.noreply.github.com>
Co-authored-by: KiMauVA <Ki.Mau@va.gov>

* Package document type styling (#21546)

* bug fix for NOD update (#21544)

* bug fix for NOPD update

* APPEALS-42281-bug-fix  - fix to update the nod on selection of correspondence document

* Add data for VA 10182 (#21553)

* Review Package General Info Section Spacing Change (#21559)

* Review Package text spacing (#21560)

* Ki/APPEALS-45367 - Intake - Confirm 3 - Package Document Type (#21571)

* APPEALS-45367 - Fixed Linting. Fixed unnecessary delete

* Rspec fixes

* update package document type NOD/NON-NOD (#21584)

* update NOD

* fix rubocop issues

* Khalin/appeals 45567 Request Package Action Modals Updated (#21590)

* Functionally complete

* Jest test fix

* Khalin/appeals 41706 Intake: Remove Mail Tasks (#21572)

* 'Returned or undeliverable mail' and 'Sent to ROJ' to be removed

* Fix faling tests wip

* Fixed test

* Update correspondence_intake_processor.rb

* Update tasks.js

---------

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

* Mail Task Position Correction (#21597)

* added changes to display intake appeal button based on NOD NON-NOD (#21618)

* added changes to display intake appeal button based on NOD NON-NOD

* updated to display intake appeal button after editing the document type

* fixing lint issues

* Update correspondence_review_package_controller.rb

Updated syntax instead of each to find_each

---------

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

* Khalin/Appeals 45367 - NOD/Non-NOD Bug Fix (#21619)

* Bug Fixed NOD/Non-NOD Functioning Correctly

* Triggering test

---------

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

* Khalin/appeals 45367 NON/Non-NOD Status Fix v2 (#21664)

* NOD/Non-NOD status Fix

* Kicking off tests

* Kicing off tests

* Caceves/appeals 46003 (#21661)

* Add inbound ops super user & adjust inbound ops normal user, disable  VA DOR logic for super user

* Add automatic seeding of inbound ops team super user

* fix for continue button on select of yes no (#21721)

* Sivakesh/appeals 44110 - Correspondence CSS Issues (#21763)

* #44110 - moved all ReceiptDatePicker styles to correspondence scss file

* #44110 - moved all TaskCompletedDatePicker styles to correspondence scss file

* #44110 - moved all AddLetter styles to correspondence scss file

* #44110 - moved all NewLetter styles to correspondence scss file

* #44110 - moved all CorrespondencePdfUI.jsx styles to correspondence scss file

* Khalin/appeals 45867 (#21703)

* WIP

* Reverting changes

* Save Changes Bug Fixed

* Return To Queue button working as intended

* Prevents save action in case of errorMessage

* WIP

* WIP

* Working as intended

* Removing comments

* fixing tests

* fixing lint error

---------

Co-authored-by: vinner57 <128258952+vinner57@users.noreply.github.com>

* Sivakesh/appeals 44110 (#21775)

* #44110 - moved all ReceiptDatePicker styles to correspondence scss file

* #44110 - moved all TaskCompletedDatePicker styles to correspondence scss file

* #44110 - moved all AddLetter styles to correspondence scss file

* #44110 - moved all NewLetter styles to correspondence scss file

* #44110 - moved all CorrespondencePdfUI.jsx styles to correspondence scss file

* #44110 - lint errors

* Remove old seed data (#21780)

---------

Co-authored-by: Ki Mau <ki.mau@va.gov>
Co-authored-by: vinner57 <128258952+vinner57@users.noreply.github.com>
Co-authored-by: Dev-KRedd <134650238+Dev-KRedd@users.noreply.github.com>
Co-authored-by: psivakeshva <168677299+psivakeshva@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.

None yet

1 participant