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

clean up uses of require_dependency #14688

Closed
erluti opened this issue Oct 9, 2020 · 9 comments
Closed

clean up uses of require_dependency #14688

erluti opened this issue Oct 9, 2020 · 9 comments
Assignees
Labels
platform-cop Issues that are in a Platform COP backlog platform-cop-backend for Platform CoP Backend platform-reliability-team tech-debt

Comments

@erluti
Copy link
Contributor

erluti commented Oct 9, 2020

Issue Description

require_dependency is no longer meaningful when zeitwerk loading is enabled. It should be removed throughout the app.

@erluti
Copy link
Contributor Author

erluti commented Jan 28, 2021

This PR is part of the work, department-of-veterans-affairs/vets-api#5787

Probably makes sense to do a PR for each module in the modules directory.

@jeff2d2 jeff2d2 added be-temp and removed be-temp labels Aug 30, 2021
@npeterson54 npeterson54 added console-services Console Services Team (Platform Crew) and removed tools-be Used for the backend tools team labels Mar 10, 2022
@npeterson54 npeterson54 added platform-cop-backend for Platform CoP Backend and removed needs-review console-services Console Services Team (Platform Crew) labels Oct 7, 2022
@andreahewitt-odd andreahewitt-odd added the platform-cop Issues that are in a Platform COP backlog label Oct 28, 2022
@gia-lexa gia-lexa self-assigned this Apr 14, 2023
@gia-lexa
Copy link
Member

Out sick but am addressing this on my return.

@gia-lexa
Copy link
Member

gia-lexa commented May 5, 2023

From the docs: https://guides.rubyonrails.org/classic_to_zeitwerk_howto.html#new-features-you-can-leverage

All known use cases of require_dependency have been eliminated with Zeitwerk. You should grep the project and delete them.

grep -r --exclude="*.html" "require_dependency" . | wc -l
107

Deleting instances and confirming those deletions don't break anything by running the test suite.

@gia-lexa
Copy link
Member

This work is completed; expecting approval on remaining PRs today.

@gia-lexa
Copy link
Member

Work is completed and merged; search of codebase shows no remaining instances of 'require_dependency'.

@pjhill
Copy link
Contributor

pjhill commented May 18, 2023

Wow -- awesome! That's a ton of merged PRs!
It's gone --
image.png

@pjhill pjhill closed this as completed May 18, 2023
@pjhill
Copy link
Contributor

pjhill commented May 18, 2023

Oh @gia-lexa, I guess we are kind of cheating by assigning story points after the fact, but what would you estimate the points at for this task?

My estimate would be something like 5 points.

@gia-lexa
Copy link
Member

That sounds reasonable, I went ahead updated the Estimate section of this ticket with "5".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-cop Issues that are in a Platform COP backlog platform-cop-backend for Platform CoP Backend platform-reliability-team tech-debt
Projects
None yet
Development

No branches or pull requests

9 participants