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

CP-49689: remove reverse dependency on SR from xs_errors #690

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

MarkSymsCtx
Copy link
Contributor

xs_errors is one of the lowest level modules in the SM codebase yet it
imports the SR module, in order to access the SROSError class, which
is one of the highest level modules. The SR subclasses then import the
xs_errors module.

Correct this inverted dependency chain by moving the declaration of
the error class into xs_errors and fix up the usage.

Also load the XML error message declarations from a sibling file to
simplify the unit tests and remove a hard coded path, which might
in the future change.

xs_errors is one of the lowest level modules in the SM codebase yet it
imports the SR module, in order to access the SROSError class, which
is one of the highest level modules. The SR subclasses then import the
xs_errors module.

Correct this inverted dependency chain by moving the declaration of
the error class into xs_errors and fix up the usage.

Signed-off-by: Mark Syms <[email protected]>
@MarkSymsCtx MarkSymsCtx merged commit c6b591a into xapi-project:master Jun 3, 2024
2 checks passed
@MarkSymsCtx MarkSymsCtx deleted the CP-49689 branch June 3, 2024 16:25
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