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

[EPIC] Withdrawals v3 #4832

Open
wants to merge 51 commits into
base: main
Choose a base branch
from
Open

[EPIC] Withdrawals v3 #4832

wants to merge 51 commits into from

Conversation

d-a-v-e
Copy link
Contributor

@d-a-v-e d-a-v-e commented Nov 25, 2024

Context

https://trello.com/c/PQLud3iQ/7827-encapsulate-withdrawal
https://trello.com/c/NpieMmSn/7846-withdrawal-data-mapping
https://trello.com/c/yd2yhmVx/7879-create-start-interstitial-page-for-withdrawals
https://trello.com/c/PV6qaldG/7907-create-why-did-you-have-to-withdraw-the-trainee-page
https://trello.com/c/zizu1xVe/7914-create-why-did-the-trainee-choose-to-withdraw-page
https://trello.com/c/oi84svc1/7885-create-why-are-you-withdrawing-the-trainee-page
https://trello.com/c/uhWRag0n/7917-create-would-this-trainee-be-interested-in-becoming-a-teacher-in-the-future-page?filter=member:chrisgannon23,member:dave_georgiou
https://trello.com/c/WmfFV8MH/7931-amend-trainee-profile-page-withdrawn-notification-and-panel
https://trello.com/c/pNcirSIp/7951-undo-withdrawal
https://trello.com/c/o8ZjhThF/7927-amend-check-withdrawals-details-page
https://trello.com/c/2Lt3BxuE/7966-withdrawals-cleanup-ticket

Changes proposed in this pull request

Refactor of the withdrawls process, including the data collected and the reasons for withdrawal

Prototype link for the journey.

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

Copy link

codecov bot commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 97.22222% with 4 lines in your changes missing coverage. Please review.

Project coverage is 96.22%. Comparing base (f830502) to head (665e19f).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
app/components/withdrawal/view.rb 88.88% 3 Missing ⚠️
app/forms/withdrawal/reason_form.rb 96.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4832      +/-   ##
==========================================
- Coverage   96.23%   96.22%   -0.01%     
==========================================
  Files         766      770       +4     
  Lines       16396    16488      +92     
==========================================
+ Hits        15778    15866      +88     
- Misses        618      622       +4     
Flag Coverage Δ
unittests 96.22% <97.22%> (-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.

@d-a-v-e d-a-v-e changed the title [7827] - Encapsulate Withdrawal (#4826) Withdrawals v3 Nov 25, 2024
@d-a-v-e d-a-v-e force-pushed the withdrawals-flow-v3 branch from 6bc2f75 to 191dde6 Compare November 26, 2024 12:40
@d-a-v-e d-a-v-e changed the title Withdrawals v3 [EPIC] Withdrawals v3 Nov 26, 2024
@d-a-v-e d-a-v-e added the DO NOT MERGE Things could break if this gets merged label Nov 26, 2024
@d-a-v-e d-a-v-e force-pushed the withdrawals-flow-v3 branch from 432b06c to c0a16bf Compare December 4, 2024 10:45
@kennyevil kennyevil force-pushed the withdrawals-flow-v3 branch 4 times, most recently from 9114eca to d4ee0b3 Compare December 9, 2024 12:41
@kennyevil kennyevil force-pushed the withdrawals-flow-v3 branch from d4ee0b3 to 000cce2 Compare December 9, 2024 12:58
kennyevil and others added 10 commits December 12, 2024 15:32
* add withdrawl trigger page

* update error message

* remove comments

* update rubocop

* disable safe navigation chain length cop

* add specs for trigger form
…tion and panel (#4917)

* modify confirm details component and remove extra information pages

* add trigger to comfirm details page

* undo analytics blocklist changes

* update withdrawal view component spec

* change for store keys

* update form specs
* correctly order withdrawal reasons and clear reasons upon trigger change

* add guard if trigger has not been set

* readd skipped specs

* remove TODO comment
@github-actions github-actions bot temporarily deployed to review-4832 January 14, 2025 10:39 Destroyed
@github-actions github-actions bot temporarily deployed to review-4832 January 16, 2025 09:06 Destroyed
@github-actions github-actions bot temporarily deployed to review-4832 February 6, 2025 15:58 Destroyed
@github-actions github-actions bot temporarily deployed to review-4832 February 6, 2025 16:08 Destroyed
@github-actions github-actions bot temporarily deployed to review-4832 February 6, 2025 16:23 Destroyed
@kennyevil kennyevil requested a review from defong February 6, 2025 16:45
@kennyevil
Copy link
Contributor

@defong I've reverted back to using WithdrawalReasons::PROVIDER_REASONS.first because .sample was causing flappy tests.

Copy link
Contributor

@defong defong left a comment

Choose a reason for hiding this comment

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

I think this is good to go

Some questions marks on

  • seeds
  • existing withdrawal
  • flappy tests

image

Copy link
Contributor

@tomtrentham tomtrentham left a comment

Choose a reason for hiding this comment

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

A couple of minor suggestions but mainly wanted to question the commented out lines in this db migration.

app/models/trainee.rb Show resolved Hide resolved
db/migrate/20241128141813_update_withdrawal_reasons.rb Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to review-4832 February 7, 2025 09:37 Destroyed
@github-actions github-actions bot temporarily deployed to review-4832 February 7, 2025 09:55 Destroyed
@github-actions github-actions bot temporarily deployed to review-4832 February 7, 2025 12:37 Destroyed
Copy link

sonarqubecloud bot commented Feb 7, 2025

Copy link
Contributor

@tomtrentham tomtrentham left a comment

Choose a reason for hiding this comment

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

Looking good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy DO NOT MERGE Things could break if this gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants