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-3815] NPQ Post Separation Cleanup - Remove NPQ API disable feature flag from ECF #5372

Conversation

mooktakim
Copy link
Contributor

Context

Changes proposed in this pull request

  • removed disable_npq feature flag.
  • removed NpqApiEndpoint.

Guidance to review

Copy link

Review app deployed to https://cpd-ecf-review-5372-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 @mooktakim 👍 😄 tks

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 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
Copy link
Contributor

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? 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

agree to keep

Copy link
Contributor Author

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")
Copy link
Contributor

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

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 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|
Copy link
Contributor

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?

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 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
Copy link
Collaborator

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|
Copy link
Collaborator

@cwrw cwrw Dec 17, 2024

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?

Copy link
Contributor Author

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

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.

looks good, a few minor comments. I agree with @ethax-ross around overlap, let's all chat tomorrow to agree way forward :)

@mooktakim mooktakim force-pushed the 3815-npq-post-separation-cleanup-remove-npq-api-disable-feature-flag-from-ecf branch 2 times, most recently from ae79b0f to 590f9ba Compare December 18, 2024 11:01
@mooktakim mooktakim force-pushed the 3815-npq-post-separation-cleanup-remove-npq-api-disable-feature-flag-from-ecf branch from 79766b1 to 10b6337 Compare December 18, 2024 11:28
@mooktakim mooktakim force-pushed the 3815-npq-post-separation-cleanup-remove-npq-api-disable-feature-flag-from-ecf branch from 10b6337 to 766f7ee Compare December 18, 2024 11:33
# frozen_string_literal: true

module ParticipantOutcomes
class BatchSendLatestOutcomesJob < ApplicationJob
Copy link
Collaborator

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
Copy link
Collaborator

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?

@mooktakim mooktakim added this pull request to the merge queue Dec 18, 2024
Merged via the queue into main with commit ed2f5bd Dec 18, 2024
57 of 58 checks passed
@mooktakim mooktakim deleted the 3815-npq-post-separation-cleanup-remove-npq-api-disable-feature-flag-from-ecf branch December 18, 2024 16:06
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