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

Removes 'require_dependency' From 'meb_api' Module #12579

Merged
merged 0 commits into from
May 10, 2023

Conversation

gia-lexa
Copy link
Member

@gia-lexa gia-lexa commented May 8, 2023

Summary

The previous upgrade to Rails 6.x brought the addition of Zeitwerk, Rails' code loader, which renders require_dependency statements unnecessary. As a result, we can remove these statements from our code.

This PR removes require_dependency specifically from the meb_api module. A separate PR is being submitted for each affected module.

This is part of an effort by Backend COP to remove some older code conventions that are no longer necessary as a result of Zeitwerk.

Issue(s)

Current Issue: Clean Up Use of 'require_dependency': department-of-veterans-affairs/va.gov-team#14688

Previous Related Work: Remove 'require_dependency' from App: #5787

Testing done

Redundant require_dependency statements removed and amended files pushed up.

Acceptance criteria

[ X ] No error nor warning as a result of running the test suite.

@gia-lexa gia-lexa changed the title Removes unnecessary 'require_dependency' from meb_api module Removes 'require_dependency' From meb_api Module May 8, 2023
@va-vfs-bot va-vfs-bot temporarily deployed to gia_14688_require_dependency_mebapi_module/main/main May 8, 2023 21:22 Inactive
@gia-lexa gia-lexa changed the title Removes 'require_dependency' From meb_api Module Removes 'require_dependency' From 'meb_api' Module May 8, 2023
@va-vsp-bot va-vsp-bot requested a deployment to gia_14688_require_dependency_mebapi_module/main/main May 9, 2023 13:46 In progress
@gia-lexa gia-lexa marked this pull request as ready for review May 9, 2023 14:01
@gia-lexa gia-lexa requested review from a team as code owners May 9, 2023 14:01
Copy link
Contributor

@ryan-mcneil ryan-mcneil left a comment

Choose a reason for hiding this comment

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

👌

@gia-lexa gia-lexa merged commit e6e2067 into master May 10, 2023
@gia-lexa gia-lexa deleted the gia_14688_require_dependency_mebapi_module branch May 10, 2023 13:36
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