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

Allow Vet File Update via Claim Evidence API #22194

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

tradesmanhelix
Copy link
Contributor

@tradesmanhelix tradesmanhelix commented Jul 16, 2024

Resolves Migrate: UpdateDocument

Description

Allows Caseflow to use the Claim Evidence API to update veteran documents.

Acceptance Criteria

  • All specs passing

Testing Plan

  • Code is currently unused, so only way to test is via specs or the Rails console:
    • Specs: bundle exec respec spec/services/external_api/vbms_service_spec.rb
    • CLI:
# Do setup
FeatureToggle.enable!(:use_ce_api)
RequestStore.store[:current_user] = User.find_by(css_id: "RP_SV_283")

uploaded_doc = VbmsUploadedDocument.last
appeal = uploaded_doc.appeal

# Do a call using the VBMS service
uploadable_document = UpdateDocumentInVbms.new(document: uploaded_doc)
ExternalApi::VBMSService.update_document_in_vbms(appeal, uploadable_document)

# Do a call using the ruby_claim_evidence_api gem directly
file_update_payload = ClaimEvidenceFileUpdatePayload.new(
  date_va_received_document: Time.zone.now,
  document_type_id: uploadable_document.document_type_id,
  file_content: File.read(uploadable_document.pdf_location),
  file_content_source: uploadable_document.source
)
VeteranFileUpdater.update_veteran_file(
  veteran_file_number: appeal.veteran_file_number,
  file_uuid: uploadable_document.document_version_reference_id,
  file_update_payload: file_update_payload
)

@tradesmanhelix tradesmanhelix marked this pull request as ready for review July 18, 2024 19:17
@youfoundmanesh youfoundmanesh merged commit cabf611 into feature/APPEALS-42462 Jul 23, 2024
15 of 17 checks passed
youfoundmanesh pushed a commit that referenced this pull request Aug 1, 2024
* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing
@tradesmanhelix tradesmanhelix deleted the asmith/APPEALS-51401 branch August 21, 2024 17:43
youfoundmanesh pushed a commit that referenced this pull request Aug 28, 2024
* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing
youfoundmanesh pushed a commit that referenced this pull request Sep 17, 2024
* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing
youfoundmanesh pushed a commit that referenced this pull request Oct 8, 2024
* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing
youfoundmanesh added a commit that referenced this pull request Oct 9, 2024
* Add New CE REST API REST Functionality for Vet Docs (#21812)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Deepak/appeals 46955 (#21865)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* small fix

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 46956 v1 (#21920)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Updated Vbms Service for RestAPI

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>

* Updated ruby_claim_evidence_api gem

* Added ClaimEvidenceApiError to rescue block (#21987)

* update result_hash (#22011)

* Fix nil Series_id for GetDocumentContent (#22038)

* Add series_id assignment to initial fetch from VBMS

* Wrap attribute assignment in feature toggle and added test case

* Allow Vet File Update via Claim Evidence API (#22194)

* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing

* Update Caseflow to Use Updated CE API Gem (#22272)

* Fix Misc. Issues with Caseflow Vet Doc Updates (#22301)

- Remove curly brackets around file series IDs and update call
  to use series ID.

- Correctly format date_va_received_document string.

- Update specs.

* Move update_document Feature Flag Logic (#22345)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* Deepak/appeals 51312 (#22364)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* allow VeteranFileUpload to connect with CEAPI

* update response

* update specs

* fix

* add json adapter

* small fix

* Fix lint issues

* lint fix

* rubocop fix

* Updated ruby ce api gem

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Updated ruby_claim_evidence_ap gem

* Update How Caseflow Adapts CE API Responses (#22395)

* Update How Caseflow Adapts CE API Responses

* Remove Unneeded Gemfile Changes

* Reset Gemfile to Match Feature Branch

---------

Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Reset Gem Versions (#22458)

Address issues with AWS requests failing by falling back to older
versions of some gems.

* Updated ruby_claim_evidence_api gem

* Create Example Sensitivity Banner (#22562)

* Add Base Sensitivity Methods and Services (#22589)

* Add Base Sensitivity Methods and Services

- Add user/veteran sensitivity methods to BGSService, borrowed
from work done for correspondence auto assignment.

- Create new service for checking the compatibility of
user/veteran sensitivity.

* Add Sensitivity Method to VBMS Service

* Add FindDocumentSeriesReference Sensitivity Checks (#22616)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Deepak/appeals 53851 (#22628)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Add checks for Sensitivity level

* small fix

* update specs

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 53862 (#22636)

* Added method to fetch and verify access by vet file number

* Added spec tests and guard clause for unassosciated documents

* Updated ruby_claim_evidence_api gem with ref

* Updated ruby_claim_evidence_api gem

* Update feature toogle to send_current_user_cred

* Update feature toogle to send_current_user_cred_to_ce_api

* Update Feature Toggle Logic (#23001)

* Update Feature Toggle Logic

- Remove references to the send_current_user_cred_to_ce_api flag
  as it is not yet implemented.

- Update sensitivity checks in vbms_service to be controlled by
  the use_ce_api feature toggle.

- Remove sensitivity checks from VbmsRequestWithFileNumber and
  child classes.

* Revert Unintended DB Schema Changes

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem

- This change will allow the CE API gem to call the CE API using
  the css_id and station_id in the passed ClaimEvidenceRequest
  object.

- The send_current_user_cred_to_ce_api in Caseflow will control
  whether user credentials or system credentials flow the CE API
  gem.

* Update ruby_claim_evidence_api Gem

- Update gem to use changes that allow for sending user creds
  to the CE API.

* Fix Misc. Issues

- Refactor some duplicate code.

- Use branch for CE API gem in Gemfile.

---------

Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Kevma50287 <104021955+Kevma50287@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>
Kevma50287 added a commit that referenced this pull request Oct 9, 2024
* Add New CE REST API REST Functionality for Vet Docs (#21812)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Deepak/appeals 46955 (#21865)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* small fix

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 46956 v1 (#21920)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Updated Vbms Service for RestAPI

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>

* Updated ruby_claim_evidence_api gem

* Added ClaimEvidenceApiError to rescue block (#21987)

* update result_hash (#22011)

* Fix nil Series_id for GetDocumentContent (#22038)

* Add series_id assignment to initial fetch from VBMS

* Wrap attribute assignment in feature toggle and added test case

* Allow Vet File Update via Claim Evidence API (#22194)

* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing

* Update Caseflow to Use Updated CE API Gem (#22272)

* Fix Misc. Issues with Caseflow Vet Doc Updates (#22301)

- Remove curly brackets around file series IDs and update call
  to use series ID.

- Correctly format date_va_received_document string.

- Update specs.

* Move update_document Feature Flag Logic (#22345)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* Deepak/appeals 51312 (#22364)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* allow VeteranFileUpload to connect with CEAPI

* update response

* update specs

* fix

* add json adapter

* small fix

* Fix lint issues

* lint fix

* rubocop fix

* Updated ruby ce api gem

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Updated ruby_claim_evidence_ap gem

* Update How Caseflow Adapts CE API Responses (#22395)

* Update How Caseflow Adapts CE API Responses

* Remove Unneeded Gemfile Changes

* Reset Gemfile to Match Feature Branch

---------

Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Reset Gem Versions (#22458)

Address issues with AWS requests failing by falling back to older
versions of some gems.

* Updated ruby_claim_evidence_api gem

* Create Example Sensitivity Banner (#22562)

* Add Base Sensitivity Methods and Services (#22589)

* Add Base Sensitivity Methods and Services

- Add user/veteran sensitivity methods to BGSService, borrowed
from work done for correspondence auto assignment.

- Create new service for checking the compatibility of
user/veteran sensitivity.

* Add Sensitivity Method to VBMS Service

* Add FindDocumentSeriesReference Sensitivity Checks (#22616)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Deepak/appeals 53851 (#22628)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Add checks for Sensitivity level

* small fix

* update specs

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 53862 (#22636)

* Added method to fetch and verify access by vet file number

* Added spec tests and guard clause for unassosciated documents

* Updated ruby_claim_evidence_api gem with ref

* Updated ruby_claim_evidence_api gem

* Update feature toogle to send_current_user_cred

* Update feature toogle to send_current_user_cred_to_ce_api

* Update Feature Toggle Logic (#23001)

* Update Feature Toggle Logic

- Remove references to the send_current_user_cred_to_ce_api flag
  as it is not yet implemented.

- Update sensitivity checks in vbms_service to be controlled by
  the use_ce_api feature toggle.

- Remove sensitivity checks from VbmsRequestWithFileNumber and
  child classes.

* Revert Unintended DB Schema Changes

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem

- This change will allow the CE API gem to call the CE API using
  the css_id and station_id in the passed ClaimEvidenceRequest
  object.

- The send_current_user_cred_to_ce_api in Caseflow will control
  whether user credentials or system credentials flow the CE API
  gem.

* Update ruby_claim_evidence_api Gem

- Update gem to use changes that allow for sending user creds
  to the CE API.

* Fix Misc. Issues

- Refactor some duplicate code.

- Use branch for CE API gem in Gemfile.

---------

Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Kevma50287 <104021955+Kevma50287@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>
youfoundmanesh added a commit that referenced this pull request Oct 10, 2024
* Updated to error object

* Fix rspec failures

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem (#23101)

* Add New CE REST API REST Functionality for Vet Docs (#21812)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Deepak/appeals 46955 (#21865)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* small fix

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 46956 v1 (#21920)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Updated Vbms Service for RestAPI

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>

* Updated ruby_claim_evidence_api gem

* Added ClaimEvidenceApiError to rescue block (#21987)

* update result_hash (#22011)

* Fix nil Series_id for GetDocumentContent (#22038)

* Add series_id assignment to initial fetch from VBMS

* Wrap attribute assignment in feature toggle and added test case

* Allow Vet File Update via Claim Evidence API (#22194)

* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing

* Update Caseflow to Use Updated CE API Gem (#22272)

* Fix Misc. Issues with Caseflow Vet Doc Updates (#22301)

- Remove curly brackets around file series IDs and update call
  to use series ID.

- Correctly format date_va_received_document string.

- Update specs.

* Move update_document Feature Flag Logic (#22345)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* Deepak/appeals 51312 (#22364)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* allow VeteranFileUpload to connect with CEAPI

* update response

* update specs

* fix

* add json adapter

* small fix

* Fix lint issues

* lint fix

* rubocop fix

* Updated ruby ce api gem

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Updated ruby_claim_evidence_ap gem

* Update How Caseflow Adapts CE API Responses (#22395)

* Update How Caseflow Adapts CE API Responses

* Remove Unneeded Gemfile Changes

* Reset Gemfile to Match Feature Branch

---------

Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Reset Gem Versions (#22458)

Address issues with AWS requests failing by falling back to older
versions of some gems.

* Updated ruby_claim_evidence_api gem

* Create Example Sensitivity Banner (#22562)

* Add Base Sensitivity Methods and Services (#22589)

* Add Base Sensitivity Methods and Services

- Add user/veteran sensitivity methods to BGSService, borrowed
from work done for correspondence auto assignment.

- Create new service for checking the compatibility of
user/veteran sensitivity.

* Add Sensitivity Method to VBMS Service

* Add FindDocumentSeriesReference Sensitivity Checks (#22616)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Deepak/appeals 53851 (#22628)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Add checks for Sensitivity level

* small fix

* update specs

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 53862 (#22636)

* Added method to fetch and verify access by vet file number

* Added spec tests and guard clause for unassosciated documents

* Updated ruby_claim_evidence_api gem with ref

* Updated ruby_claim_evidence_api gem

* Update feature toogle to send_current_user_cred

* Update feature toogle to send_current_user_cred_to_ce_api

* Update Feature Toggle Logic (#23001)

* Update Feature Toggle Logic

- Remove references to the send_current_user_cred_to_ce_api flag
  as it is not yet implemented.

- Update sensitivity checks in vbms_service to be controlled by
  the use_ce_api feature toggle.

- Remove sensitivity checks from VbmsRequestWithFileNumber and
  child classes.

* Revert Unintended DB Schema Changes

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem

- This change will allow the CE API gem to call the CE API using
  the css_id and station_id in the passed ClaimEvidenceRequest
  object.

- The send_current_user_cred_to_ce_api in Caseflow will control
  whether user credentials or system credentials flow the CE API
  gem.

* Update ruby_claim_evidence_api Gem

- Update gem to use changes that allow for sending user creds
  to the CE API.

* Fix Misc. Issues

- Refactor some duplicate code.

- Use branch for CE API gem in Gemfile.

---------

Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Kevma50287 <104021955+Kevma50287@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Update rspec failures

* Update for lint errors

---------

Co-authored-by: Alex Smith <alex.smith.99@thunderyard.com>
Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>
youfoundmanesh added a commit that referenced this pull request Oct 11, 2024
* Updated to error object

* Fix rspec failures

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem (#23101)

* Add New CE REST API REST Functionality for Vet Docs (#21812)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Deepak/appeals 46955 (#21865)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* small fix

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 46956 v1 (#21920)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Updated Vbms Service for RestAPI

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>

* Updated ruby_claim_evidence_api gem

* Added ClaimEvidenceApiError to rescue block (#21987)

* update result_hash (#22011)

* Fix nil Series_id for GetDocumentContent (#22038)

* Add series_id assignment to initial fetch from VBMS

* Wrap attribute assignment in feature toggle and added test case

* Allow Vet File Update via Claim Evidence API (#22194)

* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing

* Update Caseflow to Use Updated CE API Gem (#22272)

* Fix Misc. Issues with Caseflow Vet Doc Updates (#22301)

- Remove curly brackets around file series IDs and update call
  to use series ID.

- Correctly format date_va_received_document string.

- Update specs.

* Move update_document Feature Flag Logic (#22345)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* Deepak/appeals 51312 (#22364)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* allow VeteranFileUpload to connect with CEAPI

* update response

* update specs

* fix

* add json adapter

* small fix

* Fix lint issues

* lint fix

* rubocop fix

* Updated ruby ce api gem

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Updated ruby_claim_evidence_ap gem

* Update How Caseflow Adapts CE API Responses (#22395)

* Update How Caseflow Adapts CE API Responses

* Remove Unneeded Gemfile Changes

* Reset Gemfile to Match Feature Branch

---------

Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Reset Gem Versions (#22458)

Address issues with AWS requests failing by falling back to older
versions of some gems.

* Updated ruby_claim_evidence_api gem

* Create Example Sensitivity Banner (#22562)

* Add Base Sensitivity Methods and Services (#22589)

* Add Base Sensitivity Methods and Services

- Add user/veteran sensitivity methods to BGSService, borrowed
from work done for correspondence auto assignment.

- Create new service for checking the compatibility of
user/veteran sensitivity.

* Add Sensitivity Method to VBMS Service

* Add FindDocumentSeriesReference Sensitivity Checks (#22616)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Deepak/appeals 53851 (#22628)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Add checks for Sensitivity level

* small fix

* update specs

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 53862 (#22636)

* Added method to fetch and verify access by vet file number

* Added spec tests and guard clause for unassosciated documents

* Updated ruby_claim_evidence_api gem with ref

* Updated ruby_claim_evidence_api gem

* Update feature toogle to send_current_user_cred

* Update feature toogle to send_current_user_cred_to_ce_api

* Update Feature Toggle Logic (#23001)

* Update Feature Toggle Logic

- Remove references to the send_current_user_cred_to_ce_api flag
  as it is not yet implemented.

- Update sensitivity checks in vbms_service to be controlled by
  the use_ce_api feature toggle.

- Remove sensitivity checks from VbmsRequestWithFileNumber and
  child classes.

* Revert Unintended DB Schema Changes

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem

- This change will allow the CE API gem to call the CE API using
  the css_id and station_id in the passed ClaimEvidenceRequest
  object.

- The send_current_user_cred_to_ce_api in Caseflow will control
  whether user credentials or system credentials flow the CE API
  gem.

* Update ruby_claim_evidence_api Gem

- Update gem to use changes that allow for sending user creds
  to the CE API.

* Fix Misc. Issues

- Refactor some duplicate code.

- Use branch for CE API gem in Gemfile.

---------

Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Kevma50287 <104021955+Kevma50287@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Update rspec failures

* Update for lint errors

* Updated error handling

---------

Co-authored-by: Alex Smith <alex.smith.99@thunderyard.com>
Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>
youfoundmanesh pushed a commit that referenced this pull request Oct 25, 2024
* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing
youfoundmanesh added a commit that referenced this pull request Oct 25, 2024
* Add New CE REST API REST Functionality for Vet Docs (#21812)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Deepak/appeals 46955 (#21865)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* small fix

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 46956 v1 (#21920)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Updated Vbms Service for RestAPI

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>

* Updated ruby_claim_evidence_api gem

* Added ClaimEvidenceApiError to rescue block (#21987)

* update result_hash (#22011)

* Fix nil Series_id for GetDocumentContent (#22038)

* Add series_id assignment to initial fetch from VBMS

* Wrap attribute assignment in feature toggle and added test case

* Allow Vet File Update via Claim Evidence API (#22194)

* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing

* Update Caseflow to Use Updated CE API Gem (#22272)

* Fix Misc. Issues with Caseflow Vet Doc Updates (#22301)

- Remove curly brackets around file series IDs and update call
  to use series ID.

- Correctly format date_va_received_document string.

- Update specs.

* Move update_document Feature Flag Logic (#22345)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* Deepak/appeals 51312 (#22364)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* allow VeteranFileUpload to connect with CEAPI

* update response

* update specs

* fix

* add json adapter

* small fix

* Fix lint issues

* lint fix

* rubocop fix

* Updated ruby ce api gem

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Updated ruby_claim_evidence_ap gem

* Update How Caseflow Adapts CE API Responses (#22395)

* Update How Caseflow Adapts CE API Responses

* Remove Unneeded Gemfile Changes

* Reset Gemfile to Match Feature Branch

---------

Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Reset Gem Versions (#22458)

Address issues with AWS requests failing by falling back to older
versions of some gems.

* Updated ruby_claim_evidence_api gem

* Create Example Sensitivity Banner (#22562)

* Add Base Sensitivity Methods and Services (#22589)

* Add Base Sensitivity Methods and Services

- Add user/veteran sensitivity methods to BGSService, borrowed
from work done for correspondence auto assignment.

- Create new service for checking the compatibility of
user/veteran sensitivity.

* Add Sensitivity Method to VBMS Service

* Add FindDocumentSeriesReference Sensitivity Checks (#22616)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Deepak/appeals 53851 (#22628)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Add checks for Sensitivity level

* small fix

* update specs

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 53862 (#22636)

* Added method to fetch and verify access by vet file number

* Added spec tests and guard clause for unassosciated documents

* Updated ruby_claim_evidence_api gem with ref

* Updated ruby_claim_evidence_api gem

* Update feature toogle to send_current_user_cred

* Update feature toogle to send_current_user_cred_to_ce_api

* Update Feature Toggle Logic (#23001)

* Update Feature Toggle Logic

- Remove references to the send_current_user_cred_to_ce_api flag
  as it is not yet implemented.

- Update sensitivity checks in vbms_service to be controlled by
  the use_ce_api feature toggle.

- Remove sensitivity checks from VbmsRequestWithFileNumber and
  child classes.

* Revert Unintended DB Schema Changes

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem

- This change will allow the CE API gem to call the CE API using
  the css_id and station_id in the passed ClaimEvidenceRequest
  object.

- The send_current_user_cred_to_ce_api in Caseflow will control
  whether user credentials or system credentials flow the CE API
  gem.

* Update ruby_claim_evidence_api Gem

- Update gem to use changes that allow for sending user creds
  to the CE API.

* Fix Misc. Issues

- Refactor some duplicate code.

- Use branch for CE API gem in Gemfile.

---------

Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Kevma50287 <104021955+Kevma50287@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>
youfoundmanesh added a commit that referenced this pull request Oct 25, 2024
* Updated to error object

* Fix rspec failures

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem (#23101)

* Add New CE REST API REST Functionality for Vet Docs (#21812)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Deepak/appeals 46955 (#21865)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* small fix

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 46956 v1 (#21920)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Updated Vbms Service for RestAPI

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>

* Updated ruby_claim_evidence_api gem

* Added ClaimEvidenceApiError to rescue block (#21987)

* update result_hash (#22011)

* Fix nil Series_id for GetDocumentContent (#22038)

* Add series_id assignment to initial fetch from VBMS

* Wrap attribute assignment in feature toggle and added test case

* Allow Vet File Update via Claim Evidence API (#22194)

* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing

* Update Caseflow to Use Updated CE API Gem (#22272)

* Fix Misc. Issues with Caseflow Vet Doc Updates (#22301)

- Remove curly brackets around file series IDs and update call
  to use series ID.

- Correctly format date_va_received_document string.

- Update specs.

* Move update_document Feature Flag Logic (#22345)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* Deepak/appeals 51312 (#22364)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* allow VeteranFileUpload to connect with CEAPI

* update response

* update specs

* fix

* add json adapter

* small fix

* Fix lint issues

* lint fix

* rubocop fix

* Updated ruby ce api gem

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Updated ruby_claim_evidence_ap gem

* Update How Caseflow Adapts CE API Responses (#22395)

* Update How Caseflow Adapts CE API Responses

* Remove Unneeded Gemfile Changes

* Reset Gemfile to Match Feature Branch

---------

Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Reset Gem Versions (#22458)

Address issues with AWS requests failing by falling back to older
versions of some gems.

* Updated ruby_claim_evidence_api gem

* Create Example Sensitivity Banner (#22562)

* Add Base Sensitivity Methods and Services (#22589)

* Add Base Sensitivity Methods and Services

- Add user/veteran sensitivity methods to BGSService, borrowed
from work done for correspondence auto assignment.

- Create new service for checking the compatibility of
user/veteran sensitivity.

* Add Sensitivity Method to VBMS Service

* Add FindDocumentSeriesReference Sensitivity Checks (#22616)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Deepak/appeals 53851 (#22628)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Add checks for Sensitivity level

* small fix

* update specs

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 53862 (#22636)

* Added method to fetch and verify access by vet file number

* Added spec tests and guard clause for unassosciated documents

* Updated ruby_claim_evidence_api gem with ref

* Updated ruby_claim_evidence_api gem

* Update feature toogle to send_current_user_cred

* Update feature toogle to send_current_user_cred_to_ce_api

* Update Feature Toggle Logic (#23001)

* Update Feature Toggle Logic

- Remove references to the send_current_user_cred_to_ce_api flag
  as it is not yet implemented.

- Update sensitivity checks in vbms_service to be controlled by
  the use_ce_api feature toggle.

- Remove sensitivity checks from VbmsRequestWithFileNumber and
  child classes.

* Revert Unintended DB Schema Changes

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem

- This change will allow the CE API gem to call the CE API using
  the css_id and station_id in the passed ClaimEvidenceRequest
  object.

- The send_current_user_cred_to_ce_api in Caseflow will control
  whether user credentials or system credentials flow the CE API
  gem.

* Update ruby_claim_evidence_api Gem

- Update gem to use changes that allow for sending user creds
  to the CE API.

* Fix Misc. Issues

- Refactor some duplicate code.

- Use branch for CE API gem in Gemfile.

---------

Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Kevma50287 <104021955+Kevma50287@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Update rspec failures

* Update for lint errors

---------

Co-authored-by: Alex Smith <alex.smith.99@thunderyard.com>
Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>
youfoundmanesh added a commit that referenced this pull request Oct 25, 2024
* Updated to error object

* Fix rspec failures

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem (#23101)

* Add New CE REST API REST Functionality for Vet Docs (#21812)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Deepak/appeals 46955 (#21865)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* small fix

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 46956 v1 (#21920)

* Add New CE REST API REST Functionality for Vet Docs

- Add feature toggle to enable/disable new functionality.

- Call REST endpoint for veteran docs when the use_ce_api feature
toggle is enabled.

- Add supporting services and specs.

* Fix Misc. Issues

- Update JsonApiResponseAdapter with latest changes to respnse
parsing found in caseflow-efolder testing.

- Update ruby_claim_evidence_api to bugfix version.

* Update received_at Date Parsing Logic

- Use slashes instead of hyphens to help JS correctly parse the
date.

* Fix Double Quote Issue

* add CE-API endpoint to fetch document

* Improve JsonApiResponseAdapter Blank Response Handling

* Pass Rails Logger to VeteranFileFetcher

* Updated Vbms Service for RestAPI

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>

* Updated ruby_claim_evidence_api gem

* Added ClaimEvidenceApiError to rescue block (#21987)

* update result_hash (#22011)

* Fix nil Series_id for GetDocumentContent (#22038)

* Add series_id assignment to initial fetch from VBMS

* Wrap attribute assignment in feature toggle and added test case

* Allow Vet File Update via Claim Evidence API (#22194)

* Allow Vet File Update via Claim Evidence API

* Update Gem Version and Get Specs Passing

* Update Caseflow to Use Updated CE API Gem (#22272)

* Fix Misc. Issues with Caseflow Vet Doc Updates (#22301)

- Remove curly brackets around file series IDs and update call
  to use series ID.

- Correctly format date_va_received_document string.

- Update specs.

* Move update_document Feature Flag Logic (#22345)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* Deepak/appeals 51312 (#22364)

* Move update_document Feature Flag Logic

Move to wrap call to the legacy SOAP request. Previously, the
legacy request could still be used if users called update_document
directly, but this PR closes that loophole.

* Add Subject to Doc Update

* allow VeteranFileUpload to connect with CEAPI

* update response

* update specs

* fix

* add json adapter

* small fix

* Fix lint issues

* lint fix

* rubocop fix

* Updated ruby ce api gem

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Updated ruby_claim_evidence_ap gem

* Update How Caseflow Adapts CE API Responses (#22395)

* Update How Caseflow Adapts CE API Responses

* Remove Unneeded Gemfile Changes

* Reset Gemfile to Match Feature Branch

---------

Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Reset Gem Versions (#22458)

Address issues with AWS requests failing by falling back to older
versions of some gems.

* Updated ruby_claim_evidence_api gem

* Create Example Sensitivity Banner (#22562)

* Add Base Sensitivity Methods and Services (#22589)

* Add Base Sensitivity Methods and Services

- Add user/veteran sensitivity methods to BGSService, borrowed
from work done for correspondence auto assignment.

- Create new service for checking the compatibility of
user/veteran sensitivity.

* Add Sensitivity Method to VBMS Service

* Add FindDocumentSeriesReference Sensitivity Checks (#22616)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Deepak/appeals 53851 (#22628)

* Add Sensitivity Checks

- Verify user/veteran sensitivity levels are compatible when
calling ExternalApi::VBMSService.fetch_document_series_for and
when calling ExternalApi::VbmsDocumentSeriesForAppeal.fetch.

* Add Class Comment

* Add Sensitivity Check Failure Handling Logic to Frontend

* Improve Comment Wording

* Add Missing Space Before Access Email

* Add checks for Sensitivity level

* small fix

* update specs

---------

Co-authored-by: Alexander Smith <alex.smith.99@thunderyard.com>

* Kev ma/appeals 53862 (#22636)

* Added method to fetch and verify access by vet file number

* Added spec tests and guard clause for unassosciated documents

* Updated ruby_claim_evidence_api gem with ref

* Updated ruby_claim_evidence_api gem

* Update feature toogle to send_current_user_cred

* Update feature toogle to send_current_user_cred_to_ce_api

* Update Feature Toggle Logic (#23001)

* Update Feature Toggle Logic

- Remove references to the send_current_user_cred_to_ce_api flag
  as it is not yet implemented.

- Update sensitivity checks in vbms_service to be controlled by
  the use_ce_api feature toggle.

- Remove sensitivity checks from VbmsRequestWithFileNumber and
  child classes.

* Revert Unintended DB Schema Changes

* Update VBMSService to Pass ClaimEvidenceRequest to CE API Gem

- This change will allow the CE API gem to call the CE API using
  the css_id and station_id in the passed ClaimEvidenceRequest
  object.

- The send_current_user_cred_to_ce_api in Caseflow will control
  whether user credentials or system credentials flow the CE API
  gem.

* Update ruby_claim_evidence_api Gem

- Update gem to use changes that allow for sending user creds
  to the CE API.

* Fix Misc. Issues

- Refactor some duplicate code.

- Use branch for CE API gem in Gemfile.

---------

Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Kevma50287 <104021955+Kevma50287@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>

* Update rspec failures

* Update for lint errors

* Updated error handling

---------

Co-authored-by: Alex Smith <alex.smith.99@thunderyard.com>
Co-authored-by: SanthiParakal133 <132940479+SanthiParakal133@users.noreply.github.com>
Co-authored-by: Deepak <santhi.parakal@va.gov>
Co-authored-by: youfoundmanesh <maneshreddy.kommidi@va.gov>
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