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

move common internal/external exceptions to root dir #4447

Merged
merged 2 commits into from
Jul 15, 2020

Conversation

LindseySaari
Copy link
Contributor

Description of change

Zeitwerk mode uncovered many namespacing issues in relation to the vets-api codebase. In particular, many of our Common Exceptions were nested within (lib/common/exceptions/...) internal/external directories, but were missing the reference to ::Internal/::External within their namespacing across the codebase. It was decided in the original PR comment to move the exceptions to the root level directory and out of internal/external directories. Inheritance was suggested, but we may want to investigate at a later time as a tech debt item.

In a first attempt at this PR, we included the internal/external namespacing across the codebase, but this solution was decided upon as being optimal.

Original issue(s)

department-of-veterans-affairs/va.gov-team#10173
Original PR

@LindseySaari LindseySaari requested review from a team as code owners June 25, 2020 13:28
@LindseySaari LindseySaari changed the title move internal/external exceptions one level up move common internal/external exceptions to root dir Jun 25, 2020
@va-vfs-bot va-vfs-bot temporarily deployed to 10173-zeitwerk-lib-common-errors-namespacing/master June 25, 2020 13:40 Inactive
@kfrz kfrz added the VSP VSP Contract label Jun 25, 2020
@va-vfs-bot va-vfs-bot temporarily deployed to 10173-zeitwerk-lib-common-errors-namespacing/master June 26, 2020 13:23 Inactive
Copy link
Contributor

@f1337 f1337 left a comment

Choose a reason for hiding this comment

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

Ship it! :shipit:
Guinea pigs let out of a pen and running like lemmings

Copy link
Contributor

@saneshark saneshark left a comment

Choose a reason for hiding this comment

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

VAOS changes look good to me - note: I only reviewed vaos changes

@LindseySaari LindseySaari merged commit ef6ba63 into master Jul 15, 2020
@LindseySaari LindseySaari deleted the 10173-zeitwerk-lib-common-errors-namespacing branch July 15, 2020 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready VSP VSP Contract
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants