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

Raise 422 SchemaNotFoundError while uploading a schema referring an unexisting schemanode #4329

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

LucasG0
Copy link
Contributor

@LucasG0 LucasG0 commented Sep 11, 2024

Fix #4089

@LucasG0 LucasG0 requested a review from a team September 11, 2024 13:37
@github-actions github-actions bot added the group/backend Issue related to the backend (API Server, Git Agent) label Sep 11, 2024
@LucasG0 LucasG0 force-pushed the lgu-clean-error-on-missing-schema-menu-placement branch from 1cd2dbd to 6f31bd6 Compare September 11, 2024 15:15
@LucasG0 LucasG0 force-pushed the lgu-clean-error-on-missing-schema-menu-placement branch from 6f31bd6 to aa3e390 Compare September 11, 2024 15:16
branch_name=self.name,
identifier=node.menu_placement,
message=f"{node.kind} refers an unexisting menu placement node: {node.menu_placement}.",
)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you raise this exception from the captured one please

raise SchemaNotFoundError(
branch_name=self.name,
identifier=node.menu_placement,
message=f"{node.kind} refers an unexisting menu placement node: {node.menu_placement}.",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say f"{node.kind} refers to an invalid menu placement node: {node.menu_placement}."

Base automatically changed from release-0.16 to stable September 11, 2024 21:45
Copy link
Collaborator

@dgarros dgarros left a comment

Choose a reason for hiding this comment

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

Please can you add a newsfragment

@dgarros dgarros added the type/bug Something isn't working as expected label Sep 12, 2024
@LucasG0 LucasG0 merged commit 8795c14 into stable Sep 12, 2024
45 checks passed
@LucasG0 LucasG0 deleted the lgu-clean-error-on-missing-schema-menu-placement branch September 12, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants