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

Bugfix LH Veteran-Uploaded evidence filenames #19469

Conversation

NB28VT
Copy link
Contributor

@NB28VT NB28VT commented Nov 14, 2024

This bug was caught through manual testing on staging. The error message returned "no filename" for this line

upload_document = provider.generate_upload_document(attachment.converted_filename)

It should fall back to the upload data "name" key as is done here with the existing: https://github.com/department-of-veterans-affairs/vets-api/blob/master/app/sidekiq/evss/disability_compensation_form/submit_uploads.rb#L162

Summary

  • This work is behind a feature toggle (flipper): YES/NO
    YES - all LH migration code is behind flippers. The Veteran Upload job is being tested on staging before we roll it out to 1% of users.
  • (Summarize the changes that have been made to the platform)
  • (If bug, how to reproduce)
    On staging, perform the job again watch for error/success in datadog
  • (What is the solution, why is this the solution?)
  • (Which team do you work for, does your team own the maintenance of this component?)
    DBEX Team 2 Carbs
  • (If introducing a flipper, what is the success criteria being targeted?)

Related issue(s)

Testing done

  • New code is covered by unit tests
  • Describe what the old behavior was prior to the change
  • Describe the steps required to verify your changes are working as expected. Exclusively stating 'Specs run' is NOT acceptable as appropriate testing
  • If this work is behind a flipper:
    • Tests need to be written for both the flipper on and flipper off scenarios. Docs.
    • What is the testing plan for rolling out the feature?

Screenshots

Note: Optional

What areas of the site does it impact?

(Describe what parts of the site are impacted andifcode touched other areas)

Acceptance criteria

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No error nor warning in the console.
  • Events are being sent to the appropriate logging solution
  • Documentation has been updated (link to documentation) N/A
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Feature/bug has a monitor built into Datadog (if applicable) The dashboard is being built / tested
  • If app impacted requires authentication, did you login to a local build and verify all authenticated routes work as expected
  • I added a screenshot of the developed feature

Requested Feedback

(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?

…file name in metadata if converted filename returns nil
@va-vfs-bot va-vfs-bot temporarily deployed to nb-disability-benefits-fix-lighthouse-document-upload-veteran-evidence-name/main/main November 14, 2024 21:51 Inactive
@ajones446 ajones446 self-assigned this Nov 15, 2024
@va-vfs-bot va-vfs-bot temporarily deployed to nb-disability-benefits-fix-lighthouse-document-upload-veteran-evidence-name/main/main November 15, 2024 20:04 Inactive
@ajones446 ajones446 force-pushed the nb-disability-benefits-fix-lighthouse-document-upload-veteran-evidence-name branch from b6ac76a to 6d3ce3d Compare November 15, 2024 21:52
@ajones446 ajones446 changed the title TBD FIX BUG IN LIGHTHOUSE VETERAN UPLOAD Bugfix LH Veteran-Uploaded evidence filenames Nov 15, 2024
Copy link
Contributor

@freeheeling freeheeling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ajones446 ajones446 marked this pull request as ready for review November 18, 2024 14:46
@ajones446 ajones446 requested review from a team as code owners November 18, 2024 14:46
@ajones446 ajones446 merged commit 77816f2 into master Nov 18, 2024
50 checks passed
@ajones446 ajones446 deleted the nb-disability-benefits-fix-lighthouse-document-upload-veteran-evidence-name branch November 18, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants