-
Notifications
You must be signed in to change notification settings - Fork 8
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-3815] NPQ Post Separation Cleanup - Remove NPQ API disable feature flag from ECF #5372
[CPDLP-3815] NPQ Post Separation Cleanup - Remove NPQ API disable feature flag from ECF #5372
Conversation
Review app deployed to https://cpd-ecf-review-5372-web.test.teacherservices.cloud |
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 @mooktakim 👍 😄 tks
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 👍 I think there's quite a bit of overlap with Leandro's PR, might be worth one branching off the other
@@ -286,13 +285,4 @@ def create_participant_outcome! | |||
def check_mentor_completion | |||
ParticipantDeclarations::HandleMentorCompletion.call(participant_declaration:) | |||
end | |||
|
|||
def validate_if_npq_course_supported |
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.
Do we not want to keep this? 🤔
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.
agree to keep
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.
Yes, will change this, i saw it on Leandro's PR👍
@@ -198,7 +196,6 @@ | |||
# Keeping the urls to old guidance urls, but they need to lead to new api-reference ones | |||
get "/guidance/home", to: redirect("/api-reference") | |||
get "/guidance/ecf-usage", to: redirect("/api-reference/ecf-usage") |
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.
A bunch of these other pages don't seem to exist either, we should maybe ditch the redirects at some point. There are also some translations we could bin here
https://github.com/DFE-Digital/early-careers-framework/blob/main/config/locales/en.yml#L600
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 let's keep the other redirects for now as not sure about those for now and they are not NPQ related.
In terms of other translations I think we need to do another sweep after those tickets to see whats left and break down into tickets to avoid too many changes
@@ -32,7 +32,7 @@ | |||
end | |||
end | |||
|
|||
Cohort.where(start_year: 2021..).find_each do |cohort| | |||
Cohort.where(start_year: 2021..2024).find_each do |cohort| |
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.
Why did this need to change, of interest?
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 discussed this on call. The schedules.csv file creates up to 2024. We will change this after we add 2025 to the csv. I'll add a comment.
|
||
require "has_recordable_information" | ||
|
||
module Oneoffs::NPQ |
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.
didn't those go with the other pr 🤔
@@ -142,22 +142,6 @@ | |||
end | |||
end | |||
|
|||
# Should fail | |||
%w[eligible payable paid].each do |dec_state| |
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.
not sure why this had to go?
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.
tried to keep minimum change just for this ticket
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, a few minor comments. I agree with @ethax-ross around overlap, let's all chat tomorrow to agree way forward :)
ae79b0f
to
590f9ba
Compare
79766b1
to
10b6337
Compare
10b6337
to
766f7ee
Compare
# frozen_string_literal: true | ||
|
||
module ParticipantOutcomes | ||
class BatchSendLatestOutcomesJob < ApplicationJob |
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.
can we remove this from the cron job?
# frozen_string_literal: true | ||
|
||
module ParticipantOutcomes | ||
class StreamApiRequestsToBigQueryJob < ApplicationJob |
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.
can we remove this from ParticipantOutcomeApiRequest
?
Context
Changes proposed in this pull request
disable_npq
feature flag.NpqApiEndpoint
.Guidance to review