Skip to content

Remove class-level puts statement from Attempts API rake task#7160

Merged
zachmargolis merged 1 commit intomainfrom
margolis-remove-extra-puts
Oct 18, 2022
Merged

Remove class-level puts statement from Attempts API rake task#7160
zachmargolis merged 1 commit intomainfrom
margolis-remove-extra-puts

Conversation

@zachmargolis
Copy link
Contributor

@zachmargolis zachmargolis commented Oct 18, 2022

[skip changelog]

🎫 Ticket

n/a

🛠 Summary of changes

In production, running one rake task causes them all to be loaded so this puts statement got executed from an unrelated task, because it was at the class level

📜 Testing Plan

  • Override irs_attempt_api_auth_tokens: '' locally
  • Run bundle exec rake -T (list tasks)
  • Make sure error message does not print
> bundle exec rake -T
There are no configured irs_attempt_api_auth_tokens

**Why**: in production, running one rake task causes them all to be loaded
so this puts statement got executed from an unrelated task, because it
was at the class level

[skip changelog]
@zachmargolis zachmargolis requested a review from a team October 18, 2022 00:31
@zachmargolis zachmargolis merged commit e82e728 into main Oct 18, 2022
@zachmargolis zachmargolis deleted the margolis-remove-extra-puts branch October 18, 2022 15:05
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