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

Remove cross cycle code from 2024 to 2025 #4600

Merged
merged 3 commits into from
Oct 25, 2024

Conversation

inulty-dfe
Copy link
Contributor

Context

We added some cycle year checks and tests. This PR cleans up those
cycle checks from these PRs

Changes proposed in this pull request

Remove Recruitment cycle specific testing
Stop checking for 2025 rcruitment cycle when showing the link to school placements in Find

Guidance to review

Things to check

  • This code does not rely on migrations in the same Pull Request
  • If this code includes a migration adding or changing columns, it also backfills existing records for consistency
  • If this code adds a column to the DB, decide whether it needs to be in analytics yml file or analytics blocklist
  • API release notes have been updated if necessary
  • Required environment variables have been updated added to the Azure KeyVault
  • Inform data insights team due to database changes
  • Make sure all information from the Trello card is in here
  • Rebased main
  • Cleaned commit history
  • Tested by running locally
  • Attach PR to Trello card

@inulty-dfe inulty-dfe requested a review from a team as a code owner October 16, 2024 12:25
@inulty-dfe inulty-dfe force-pushed the clean-up-placements-cycle-2025 branch from 456a401 to 32cd3cd Compare October 16, 2024 12:29
Copy link
Contributor

@Nitemaeric Nitemaeric left a comment

Choose a reason for hiding this comment

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

LGTM, but I'd lean on another team dev to give a proper tick.

@Nitemaeric Nitemaeric requested a review from a team October 16, 2024 13:05
@tomas-stefano
Copy link
Contributor

Should we cleanup this one? Or replace with RecruitmentCycle.current.year ?

spec/components/find/courses/training_locations/view_spec.rb
59:    let(:year) { 2025 }
62:    context 'when preview = true, before 2025 find opens and provider != selectable_school' do
64:      let(:year) { 2025 }
67:      it 'renders link to the publish path for 2025 provider' do
79:    context 'when preview is false after find opens in 2025 and provider has selectable_school enabled' do
80:      let(:year) { 2025 }

I also have another one but this might be redundant now that we are on 2025 🤔 🤔 🤔 can take a look tomorrow

spec/features/publish/courses/publishing_a_course_2025_spec.rb
8:  scenario 'i can publish a course in 2025' do
9:    given_the_current_recruitment_cycle_is_2025
23:  def given_the_current_recruitment_cycle_is_2025
24:    allow(Settings).to receive(:current_recruitment_cycle_year).and_return(2025)

@inulty-dfe
Copy link
Contributor Author

Should we cleanup this one? Or replace with RecruitmentCycle.current.year ?

spec/components/find/courses/training_locations/view_spec.rb
59:    let(:year) { 2025 }
62:    context 'when preview = true, before 2025 find opens and provider != selectable_school' do
64:      let(:year) { 2025 }
67:      it 'renders link to the publish path for 2025 provider' do
79:    context 'when preview is false after find opens in 2025 and provider has selectable_school enabled' do
80:      let(:year) { 2025 }

I also have another one but this might be redundant now that we are on 2025 🤔 🤔 🤔 can take a look tomorrow

spec/features/publish/courses/publishing_a_course_2025_spec.rb
8:  scenario 'i can publish a course in 2025' do
9:    given_the_current_recruitment_cycle_is_2025
23:  def given_the_current_recruitment_cycle_is_2025
24:    allow(Settings).to receive(:current_recruitment_cycle_year).and_return(2025)

I'll pick this up tomorrow

  We added some cycle year checks and tests. This PR cleans up those
  cycle checks from these PRs
  - #4531
  - #4539
@inulty-dfe inulty-dfe force-pushed the clean-up-placements-cycle-2025 branch from 32cd3cd to ec62940 Compare October 22, 2024 11:13
@inulty-dfe inulty-dfe force-pushed the clean-up-placements-cycle-2025 branch from 6199021 to fe5c1be Compare October 22, 2024 11:41
@inulty-dfe inulty-dfe requested a review from Nitemaeric October 22, 2024 11:51
@inulty-dfe inulty-dfe merged commit 9dda335 into main Oct 25, 2024
19 checks passed
@inulty-dfe inulty-dfe deleted the clean-up-placements-cycle-2025 branch October 25, 2024 16:34
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.

3 participants