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

[networking_mapper] Make null templates behave like an empty one #1837

Conversation

pablintino
Copy link
Collaborator

Now, if the data inside a template network is null the mapper will raise an unhandled exception, that may be fine, but for this particular case making null and empty behave the same way will allow the mapper to raise a meaningful error letting him know the field cannot be empty as some child elements are mandatory.

As a pull request owner and reviewers, I checked that:

  • Appropriate testing is done and actually running
  • Appropriate documentation exists and/or is up-to-date:
    • README in the role
    • Content of the docs/source is reflecting the changes

Now, if the data inside a template network is null the mapper will raise
an unhandled exception, that may be fine, but for this particular case
making null and empty behave the same way will allow the mapper to raise
a meaningful error letting him know the field cannot be empty as some
child elements are mandatory.
@github-actions github-actions bot marked this pull request as draft June 5, 2024 10:21
Copy link

github-actions bot commented Jun 5, 2024

Thanks for the PR! ❤️
I'm marking it as a draft, once your happy with it merging and the PR is passing CI, click the "Ready for review" button below.

Copy link
Contributor

@cjeanner cjeanner left a comment

Choose a reason for hiding this comment

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

/approve

Copy link
Contributor

openshift-ci bot commented Jun 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cjeanner

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Jun 5, 2024
@pablintino pablintino marked this pull request as ready for review June 5, 2024 13:31
@openshift-ci openshift-ci bot added the lgtm label Jun 5, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 60d6a1b into main Jun 5, 2024
7 checks passed
@openshift-merge-bot openshift-merge-bot bot deleted the networking_mapper/assume-null-templates-are-empty-ones branch June 5, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants