-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
Review app deployed to https://cpd-ecf-review-5461-web.test.teacherservices.cloud |
b3cf381
to
88131be
Compare
6689322
to
8d9889d
Compare
1d80071
to
25692ac
Compare
a51bd78
to
c64a04d
Compare
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this 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
good question about the feature flags. For now left it. Will discuss |
There was a problem hiding this 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 :)
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, couple of files I think can go:
https://github.com/DFE-Digital/early-careers-framework/blob/main/spec/fixtures/files/api_reference/api_spec_no_npq.json
https://github.com/DFE-Digital/early-careers-framework/blob/main/spec/fixtures/files/api_reference/api_spec.json
And a few references kicking about still (these are just a few but there are more on searching):
early-careers-framework/spec/factories/participant_identity.rb
Lines 10 to 12 in 1931220
trait :npq_origin do | |
origin { "npq" } | |
end |
npq: "npq", |
cdb02bc
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 |
c64a04d
to
b1e5fc5
Compare
…API_KEY from rails credentials
…start_year_2020_or_earlier?'
11c5f2d
to
2d0eab0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks Mook!
Context
Changes proposed in this pull request
QUALIFIED_TEACHERS_API_URL
QUALIFIED_TEACHERS_API_KEY
npq_registration_start_date
to ignored columns forCohort
npq_capping
Guidance to review