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

[7797] Allow a CSV bulk upload to be cancelled through the Summary page #4800

Open
wants to merge 55 commits into
base: 7744-create-upload-summary-page-part-2
Choose a base branch
from

Conversation

Reyko
Copy link
Contributor

@Reyko Reyko commented Nov 11, 2024

Context

7797-allow-a-csv-bulk-upload-to-be-cancelled-through-the-summary-page

Screenshot 2024-11-11 at 10 20 57

Changes proposed in this pull request

  • Add a cancel upload link
  • Change the upload status to cancelled

Guidance to review

Important business

  • Does this PR introduce any PII fields that need to be overwritten or deleted in db/scripts/sanitise.sql?
  • Does this PR change the database schema? If so, have you updated the config/analytics.yml file and considered whether you need to send 'import_entity' events?
  • Do we need to send any updates to DQT as part of the work in this PR?
  • Does this PR need an ADR?

NB: Please notify the #twd_data_insights team and ask for a review if new fields are being added to analytics.yml

stevehook and others added 30 commits November 2, 2024 10:28
Outline of error handling and rollback
We can now import into the DB
Add `validated` and `submitted` states because we need interim states
between two new states between `pending` and `completed` to
- indicate that the upload has been validated (and has no errors)
- indicate that the upload has been submitted but has not finished
  processing.
This spec now invokes the dry run and submit background jobs to complete
the import of valid records.
Co-authored-by: Serafeim Maroulis <[email protected]>
Leaving the rendering of error messages for later tickets.
This means that the creation of row records happens inside a job (and
not as part of the same database transation that creates the upload
record.
@Reyko Reyko changed the title Allow a BulkUpdate::TraineeUpload to be cancelled [7797] Allow a CSV bulk upload to be cancelled through the Summary page Nov 11, 2024
@Reyko Reyko force-pushed the 7797-allow-a-csv-bulk-upload-to-be-cancelled-through-the-summary-page branch from 1fbe098 to 134951a Compare November 11, 2024 09:49
Copy link

sonarcloud bot commented Nov 11, 2024

@Reyko Reyko marked this pull request as ready for review November 11, 2024 10:08
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.02%. Comparing base (cb2a861) to head (134951a).

Additional details and impacted files
@@                           Coverage Diff                           @@
##           7744-create-upload-summary-page-part-2    #4800   +/-   ##
=======================================================================
  Coverage                                   96.02%   96.02%           
=======================================================================
  Files                                         722      722           
  Lines                                       15735    15738    +3     
=======================================================================
+ Hits                                        15109    15112    +3     
  Misses                                        626      626           
Flag Coverage Δ
unittests 96.02% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants