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-3933] Add Mentor call off contract to ECF #5442

Merged
merged 5 commits into from
Jan 17, 2025

Conversation

mooktakim
Copy link
Contributor

Context

Changes proposed in this pull request

  • Created MentorCallOffContract model
  • Created Importers::CreateMentorCallOffContract service
  • Spec

Guidance to review

Copy link

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

@leandroalemao leandroalemao self-assigned this Jan 15, 2025
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.

Looks good just a few questions. Have the confluence docs been updated as well?

t.belongs_to :lead_provider, null: false, foreign_key: true, type: :uuid, index: true
t.belongs_to :cohort, null: false, foreign_key: true, type: :uuid, index: true

t.string :version, null: false, default: "0.0.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we just sticking to the call off contract versioning/logic?

Copy link
Contributor

Choose a reason for hiding this comment

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

Think so.. but also we need to sync up this value with contract_version from statements.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed on call yesterday we'll keep the current version implementation

@@ -25,6 +25,7 @@ class LeadProvider < ApplicationRecord
has_many :partnership_csv_uploads
has_many :lead_provider_api_tokens
has_one :call_off_contract
has_many :mentor_call_off_contracts
Copy link
Collaborator

Choose a reason for hiding this comment

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

Worth updating the LP spec here?

@@ -25,6 +25,7 @@ class LeadProvider < ApplicationRecord
has_many :partnership_csv_uploads
has_many :lead_provider_api_tokens
has_one :call_off_contract
Copy link
Collaborator

Choose a reason for hiding this comment

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

as discussed this seems wrong and it is, when we call this it just picks one contract for lead provider, checking the code it is called BUT not used anywhere except in banding tracker which is deprecated and not built correctly/used. We can add a tech debt ticket to remove this

@mooktakim mooktakim force-pushed the 3933-add-mentor-call-off-contract-to-ecf-2 branch from fc30611 to c53ab10 Compare January 16, 2025 12:13
@mooktakim mooktakim force-pushed the 3933-add-mentor-call-off-contract-to-ecf-2 branch from c53ab10 to 11dc2bf Compare January 16, 2025 14:41
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! I can see confluence was updated with the csv, but could we also update the upload csv and script section please? otherwise all good :)

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.

Hi @mooktakim All good tks 👍

@mooktakim mooktakim added this pull request to the merge queue Jan 17, 2025
Merged via the queue into main with commit c8811d2 Jan 17, 2025
36 checks passed
@mooktakim mooktakim deleted the 3933-add-mentor-call-off-contract-to-ecf-2 branch January 17, 2025 10:20
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