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-3818] Remove data in shared ecf declaration tables for npq #5401

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mooktakim
Copy link
Contributor

Context

Changes proposed in this pull request

  • Removed and dropped table ParticipantOutcomeApiRequest
  • Removed and dropped table ParticipantOutcome::NPQ
  • With migration deleted NPQ declarations data from:
    • DeclarationState
    • ParticipantDeclarationAttempt
    • ParticipantDeclaration

Guidance to review

Copy link

github-actions bot commented Jan 3, 2025

Review app deployed to https://cpd-ecf-review-5401-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.

@mooktakim All looks good.. a minor comment on cleaning en.yml file as well if you want.

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 just one minor comment

@@ -3,7 +3,7 @@
class DetectSidekiqMetricsIssuesJob
include Sidekiq::Worker

SIDEKIQ_QUEUE_NAMES = %w[priority_mailers mailers default participant_outcomes big_query].freeze
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe we can remove outcomes from fixtures? fixtures/files/api_reference/api_spec.json

@@ -3,7 +3,7 @@
class FutureDateValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
if value && value > Time.zone.now
record.instance_of?(::ParticipantOutcome::NPQ) ? record.errors.add(attribute, I18n.t(:future_date_outcomes, attribute:)) : record.errors.add(attribute, I18n.t(:future_date, attribute:))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can drop future_date_outcomes from the translations file

Copy link
Contributor

Choose a reason for hiding this comment

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

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 those are in the sweep later so its ok :)

@mooktakim mooktakim force-pushed the 3814-npq-post-separation-cleanup-remove-npq-specific-tables-from-ecf branch 2 times, most recently from 856360e to 673893e Compare January 8, 2025 15:53
Base automatically changed from 3814-npq-post-separation-cleanup-remove-npq-specific-tables-from-ecf to main January 8, 2025 16:50
@mooktakim mooktakim force-pushed the 3818-remove-data-in-shared-ecf-declaration-tables-for-npq branch from 7d5d1c9 to a57b49f Compare January 8, 2025 17:58
@mooktakim mooktakim force-pushed the 3818-remove-data-in-shared-ecf-declaration-tables-for-npq branch from a57b49f to b571092 Compare January 8, 2025 17:59
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