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

Fix: Don't reset contractual base on production entities #1349

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

johanib
Copy link
Contributor

@johanib johanib commented Jan 14, 2025

Prior to this change, when a change request was sent, the contractualBase would be set to null, because it is not present in the form. This change updates the contractualbase if necessary on update.

The expected behaviour is:
When the field is not present, add it with the correct value
When the field is present and the value is incorrect update it
When the field is present and the value is correct, leave it untouched

Resolves #1343

@johanib johanib requested a review from MKodde January 14, 2025 12:36
@johanib johanib force-pushed the feature/1343_fix-contractual_base_request branch 2 times, most recently from 658486e to 44e7425 Compare January 14, 2025 14:21
<?php

/**
* Copyright 2024 SURFnet B.V.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Copyright 2024 SURFnet B.V.
* Copyright 2025 SURFnet B.V.

.github/workflows/test-integration.yml Show resolved Hide resolved
Prior to this change, when a change request was sent, the contractualBase would be set to null, because it is not present in the form.
This change updates the contractual base if necessary on update.

The expected behaviour is:
When the field is not present, add it with the correct value
When the field is present and the value is incorrect update it
When the field is present and the value is correct, leave it untouched

Resolves #1343
@johanib johanib force-pushed the feature/1343_fix-contractual_base_request branch from 44e7425 to 0085f9a Compare January 16, 2025 07:40
@johanib johanib requested a review from MKodde January 16, 2025 07:43
Copy link
Contributor

@MKodde MKodde left a comment

Choose a reason for hiding this comment

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

The failing pipeline does not seem to hail from these changes. Approving

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

Contractual base is not set when doing a change request
2 participants