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

[CPDLP-3814] NPQ Post Separation Cleanup - Remove NPQ specific tables from ECF #5374

Conversation

mooktakim
Copy link
Contributor

@mooktakim mooktakim commented Dec 18, 2024

Context

Changes proposed in this pull request

  • Remove the following models and tables:
    • NPQ applications
    • NPQ contracts
    • NPQ courses
    • NPQ lead providers
    • NPQ application exports

Guidance to review

@mooktakim mooktakim changed the base branch from main to CPDLP-3840 December 18, 2024 10:33
Copy link

Review app deployed to https://cpd-ecf-review-5374-web.test.teacherservices.cloud

Copy link
Contributor

@leandroalemao leandroalemao left a comment

Choose a reason for hiding this comment

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

Looks good 👍 but maybe we could wait for the other PR to be tested first? as many changes are included there as well..

@mooktakim mooktakim force-pushed the CPDLP-3840 branch 2 times, most recently from 4579553 to c0f9ecc Compare December 23, 2024 10:47
Base automatically changed from CPDLP-3840 to main December 23, 2024 14:38
@mooktakim mooktakim force-pushed the 3814-npq-post-separation-cleanup-remove-npq-specific-tables-from-ecf branch from 7eac355 to 1a01ad7 Compare December 23, 2024 16:22
@mooktakim mooktakim force-pushed the 3814-npq-post-separation-cleanup-remove-npq-specific-tables-from-ecf branch from 1a01ad7 to 7b08491 Compare December 24, 2024 10:02
spec/services/record_declaration_spec.rb Outdated Show resolved Hide resolved
spec/models/participant_outcome/npq_spec.rb Outdated Show resolved Hide resolved
spec/requests/api/v1/participant_declarations_spec.rb Outdated Show resolved Hide resolved
spec/requests/api/v2/participant_declarations_spec.rb Outdated Show resolved Hide resolved
spec/requests/api/v3/participant_declarations_spec.rb Outdated Show resolved Hide resolved
spec/forms/choose_role_form_spec.rb Show resolved Hide resolved
app/policies/npq_application_policy.rb Show resolved Hide resolved
spec/forms/nominate_induction_tutor_form_spec.rb Outdated Show resolved Hide resolved
spec/forms/schools/add_participants/add_wizard_spec.rb Outdated Show resolved Hide resolved
@mooktakim mooktakim force-pushed the 3814-npq-post-separation-cleanup-remove-npq-specific-tables-from-ecf branch from 4a177b9 to 9f8e1ed Compare December 27, 2024 16:33
@mooktakim mooktakim force-pushed the 3814-npq-post-separation-cleanup-remove-npq-specific-tables-from-ecf branch from 9f8e1ed to 6769222 Compare December 30, 2024 10:20
Copy link
Contributor

@ethax-ross ethax-ross left a comment

Choose a reason for hiding this comment

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

Looks good, I'm not sure if we care too much, but if you apply the migration and then roll it back and diff against main there are a few foreign keys missing:

-  add_foreign_key "npq_application_exports", "users"
-  add_foreign_key "npq_applications", "npq_courses"
-  add_foreign_key "npq_applications", "npq_lead_providers"
-  add_foreign_key "npq_applications", "participant_identities"
-  add_foreign_key "npq_applications", "users", column: "eligible_for_funding_updated_by_id"

Has this been tested on the snapshot environment?

@mooktakim
Copy link
Contributor Author

Looks good, I'm not sure if we care too much, but if you apply the migration and then roll it back and diff against main there are a few foreign keys missing:

-  add_foreign_key "npq_application_exports", "users"
-  add_foreign_key "npq_applications", "npq_courses"
-  add_foreign_key "npq_applications", "npq_lead_providers"
-  add_foreign_key "npq_applications", "participant_identities"
-  add_foreign_key "npq_applications", "users", column: "eligible_for_funding_updated_by_id"

Has this been tested on the snapshot environment?

Migration has been run on snapshot 👍

I'm thinking we ignore the foreign keys as we won't need it

@mooktakim mooktakim force-pushed the 3814-npq-post-separation-cleanup-remove-npq-specific-tables-from-ecf branch from 00aafc5 to 856360e Compare January 8, 2025 15:51
@mooktakim mooktakim force-pushed the 3814-npq-post-separation-cleanup-remove-npq-specific-tables-from-ecf branch from 856360e to 673893e Compare January 8, 2025 15:53
@mooktakim mooktakim added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit 47cc672 Jan 8, 2025
29 checks passed
@mooktakim mooktakim deleted the 3814-npq-post-separation-cleanup-remove-npq-specific-tables-from-ecf branch January 8, 2025 16:50
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.

4 participants