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-3913] Remove any remnants of NPQ in ECF app #5461

Merged
merged 21 commits into from
Jan 27, 2025

Conversation

mooktakim
Copy link
Contributor

@mooktakim mooktakim commented Jan 21, 2025

Context

Changes proposed in this pull request

  • Removed REMOVE_NPQ_REFERENCES and related
  • Removed NPQ css
  • Removed NPQ form services
  • Removed NPQ logic from Cohort
  • Removed NPQ locales
  • Removed NPQ payment calculators
  • From rails credentials, removed:
    • QUALIFIED_TEACHERS_API_URL
    • QUALIFIED_TEACHERS_API_KEY
  • Added npq_registration_start_date to ignored columns for Cohort
  • Removed feature npq_capping

Guidance to review

Copy link

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

@mooktakim mooktakim force-pushed the 3913-remove-any-remnants-of-npq-in-ecf-app branch from b3cf381 to 88131be Compare January 21, 2025 16:25
@mooktakim mooktakim force-pushed the 3913-remove-any-remnants-of-npq-in-ecf-app branch from 6689322 to 8d9889d Compare January 22, 2025 11:01
@mooktakim mooktakim force-pushed the 3913-remove-any-remnants-of-npq-in-ecf-app branch from 1d80071 to 25692ac Compare January 22, 2025 11:37
@mooktakim mooktakim marked this pull request as ready for review January 22, 2025 11:37
@mooktakim mooktakim force-pushed the 3913-remove-any-remnants-of-npq-in-ecf-app branch from a51bd78 to c64a04d Compare January 22, 2025 15:37
@@ -22,10 +21,6 @@ def self.active_registration_cohort
where(registration_start_date: ..Date.current).order(start_year: :desc).first
end

def self.active_npq_registration_cohort
where(npq_registration_start_date: ..Date.current).order(start_year: :desc).first.presence || current
Copy link
Contributor

Choose a reason for hiding this comment

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

Will we drop npq_registration_start_date from cohorts table as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're keeping the columns for now, just removing the logic.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think maybe removing the column might be a good shout, let's discuss tomorrow

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.

Would it be nice to remove feature flag as well?

disable_npq
npq_capping

@mooktakim
Copy link
Contributor Author

Would it be nice to remove feature flag as well?

disable_npq npq_capping

good question about the feature flags. For now left it. Will discuss

Copy link
Collaborator

@cwrw cwrw left a comment

Choose a reason for hiding this comment

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

thanks Mook a few minor comments, also maybe we can look to remove some NPQ content in app/views/sandbox/show.html.erb, db/new_seeds/base/add_lead_providers_and_cips.rb, otherwise looking great :)

docs/lib/govuk_tech_docs/open_api/renderer.rb Outdated Show resolved Hide resolved
@@ -22,10 +21,6 @@ def self.active_registration_cohort
where(registration_start_date: ..Date.current).order(start_year: :desc).first
end

def self.active_npq_registration_cohort
where(npq_registration_start_date: ..Date.current).order(start_year: :desc).first.presence || current
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think maybe removing the column might be a good shout, let's discuss tomorrow

app/models/cohort.rb Show resolved Hide resolved
Copy link
Collaborator

@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.

@cwrw
Copy link
Collaborator

cwrw commented Jan 24, 2025

I was thinking we leave the participant identity origin, as it will still exist and we don't intent on ever updating it/backfilling it

Copy link
Collaborator

@cwrw cwrw left a comment

Choose a reason for hiding this comment

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

thanks Mook!

@mooktakim mooktakim added this pull request to the merge queue Jan 27, 2025
Merged via the queue into main with commit e381012 Jan 27, 2025
37 checks passed
@mooktakim mooktakim deleted the 3913-remove-any-remnants-of-npq-in-ecf-app branch January 27, 2025 14: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