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

Al/appeals 45668 #23653

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

Al/appeals 45668 #23653

wants to merge 31 commits into from

Conversation

almorbah
Copy link
Contributor

@almorbah almorbah commented Dec 2, 2024

Resolves Creation of ‘Apply’ button on Saved Searches page

Description

As a VHA user, I need to apply the current saved search selection so that I can generate the selected task report and applicable filters.

Acceptance Criteria

  • Code compiles correctly

Testing Plan

  1. Go to Jira Issue/Test Plan Link or list them below
  • User need to save a set Generate task report criteria then navigate to /decision_reviews/vha/searches page.

  • Saved search and click Apply.

  • User should be navigated to /decision_reviews/vha/report with search criteria applied to the form.

  • 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?

roberttravispierce and others added 19 commits October 4, 2024 14:53
* first pass at creating blank saved search page

* remove unused imports

* basic storybook

* refactor, add tests, use absolute links

* add a probably temporary route to get admin restriction

* refactor to make code climate leave me alone

* remove unused imports

* remove a trailing slash

* fix frontend tests and more linter fixes

* remove trailing slash in spec

* DRY up noncomp store creation

* Update client/app/nonComp/pages/SavedSearches.jsx

Co-authored-by: Tyler Broyles <[email protected]>

* move test into a step

* put text into constant, refactor test

* Update client/app/nonComp/pages/SavedSearches.jsx

Co-authored-by: Brandon Lee Dorner <[email protected]>

* delete feature notes and unused code

* fix test typo

---------

Co-authored-by: Tyler Broyles <[email protected]>
Co-authored-by: Brandon Lee Dorner <[email protected]>
* Added new model and spec files

* rubocop linting

* rubocop fixing linting error

* fixing schema file

* changes from PR feedback

* added add_foreign_key for savedsearch

* updated factory attribute names

---------

Co-authored-by: Brandon Lee Dorner <[email protected]>
* initial commit before merging dependent ticket - APPEALS-45336

* merge feature branch and fix merges

* addressing PR comments

* more PR feedbacks

* adding MarginLeft

---------

Co-authored-by: Brandon Lee Dorner <[email protected]>
* added controller actions and routes

* added action logic

* adding index for the controller, modificaiton in the routes and serializer

* added spes tests

* spec for index, show and controller

* fixing the linter and frontend error

* serializer spec for saved_search

* linter fix

* adding show template

* renamed saved search factory file

* made changes to PR feedback

* changed routes setup

* fixing the route and pr comments

* fixing spec tests and linting errors

* linting errors

* fixing the failed tests

* fixing spec tests

* making linter happy

* adding id to the serializer

---------

Co-authored-by: almorbah <[email protected]>
Co-authored-by: Brandon Lee Dorner <[email protected]>
* Initial commit that refactors the decision review queue redux store and react components to properly work without the first page load coming directly from the decision reviews controller index or show actions.

* Added a business line information route and a component to retrieve that data if it is not present for the decision review queue to allow redux routing without coming directly from the decision_reviews_controller.

* Fixed a couple of failing tests and added the filter details back to the decision review index html file.

* Moved the loading check to NonCompTabs instead of TaskTableTabto prevent a bug where the rendering code would still execute even though the loading variable was true.

* Updated a failing jest snapshot.
* initial commit with Populate tabs on Saved Searches page

* added feature spec tests

* fixed feature spec tests

* fixing spec tests

* addressing PR feedback

* addressing PR feedback fixing variable names

* addressing PR feedback

* linting error
…and SavelimitReachedModal. (#23428)

* first commit

* meeting AC for APPEALS-45670 - adding contents for savedSearchModal

* frontend test and AC fixes

* save search mock data

* fixing spec failures and adding feature test

* fixing linter issues

* reverting changes to fix github from running

* fixing linter and setting scrollonAlert true

* fixing some errors and data

* fixing the linter and jest failure

* fixing the snap and trying fixing the save_search_spec

* fixing bug due to mutation and PR comments

* fixing linter and snapshot

* fixing the spaces

* fixing linter

---------

Co-authored-by: Brandon Lee Dorner <[email protected]>
* making delete button work in Saved Searches

* jest test

* adding more jest testing

* Feature test

* addressing PR comment

* changing the title to Copy.json instead of hard code

---------

Co-authored-by: Brandon Lee Dorner <[email protected]>
@almorbah almorbah changed the base branch from feature/APPEALS-45267 to main December 3, 2024 16:36
Copy link

codeclimate bot commented Dec 3, 2024

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

View more on Code Climate.

@almorbah almorbah force-pushed the Al/APPEALS-45668 branch 2 times, most recently from df52d86 to 5fe6a86 Compare December 3, 2024 18:56
pamatyatake2 and others added 7 commits December 3, 2024 12:56
* making delete button work in Saved Searches

* jest test

* adding more jest testing

* Feature test

* addressing PR comment

* changing the title to Copy.json instead of hard code

* test and stories and meeting the AC

* removing duplication from stories and test to make code climate stuff happy

* Rename SaveLimitReachModal.stories.js to SaveLimitReachedModal.stories.js

renaming the file to match the main file

* fixing the slicer and PR comments

* removing eslint disable

---------

Co-authored-by: Brandon Lee Dorner <[email protected]>
@almorbah almorbah added Team: Titan A development team for the VHA business line ART: VHA Saved Search - Reassign cases to camo labels Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ART: VHA Saved Search - Reassign cases to camo Team: Titan A development team for the VHA business line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants