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

IBX-4031: Forced copy non-translatable field values from main content to current draft during publish #380

Merged
merged 17 commits into from
Aug 10, 2023

Conversation

barw4
Copy link
Member

@barw4 barw4 commented Aug 1, 2023

Question Answer
JIRA issue IBX-4031
Type bug
Target Ibexa version v3.3
BC breaks no

Following PR assures that a content that is being published will have updated values for its non-translatable fields taken from main published version.

Related PR: ezsystems/ezplatform-content-forms#71

Checklist:

  • Provided PR description.
  • Tested the solution manually.
  • Provided automated test coverage.
  • Checked that target branch is set correctly (master for features, the oldest supported for bugs).
  • Ran PHP CS Fixer for new PHP code (use $ composer fix-cs).
  • Asked for a review (ping @ezsystems/engineering-team).

@ViniTou
Copy link
Contributor

ViniTou commented Aug 4, 2023

It seems that for some reason, maybe totally unrelated, integration tests are failing at random here. Could you check if those changes could introduce that behavior?

Also, not sure, but maybe it is reasonable to move that new integration test into new integration setup based on TestKernel? @alongosz

eZ/Publish/API/Repository/Tests/ContentServiceTest.php Outdated Show resolved Hide resolved
eZ/Publish/API/Repository/Tests/ContentServiceTest.php Outdated Show resolved Hide resolved
eZ/Publish/API/Repository/Tests/ContentServiceTest.php Outdated Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Outdated Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Outdated Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Outdated Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Outdated Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Outdated Show resolved Hide resolved
eZ/Publish/Core/Repository/ContentService.php Show resolved Hide resolved
@barw4 barw4 force-pushed the ibx-4031-update-non-translatable-fields-during-publish branch from cd1cf68 to d49629a Compare August 4, 2023 14:37
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

@barw4 looks very good. I have some small remarks and an idea which should workaround SonarCloud code duplication issue for now:

@barw4 barw4 requested a review from alongosz August 7, 2023 12:30
@barw4 barw4 requested a review from alongosz August 7, 2023 12:52
@alongosz alongosz requested a review from a team August 7, 2023 13:00
Copy link
Member

@konradoboza konradoboza left a comment

Choose a reason for hiding this comment

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

Optional nitpicking:

@sonarcloud
Copy link

sonarcloud bot commented Aug 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bogusez
Copy link

bogusez commented Aug 10, 2023

Regression tests passed:
ibexa/oss#109

@bogusez bogusez added QA approved Ready for MERGE To be set by author or maintainer and removed Ready for QA labels Aug 10, 2023
@alongosz alongosz merged commit 20bebf9 into 1.3 Aug 10, 2023
24 checks passed
@alongosz alongosz deleted the ibx-4031-update-non-translatable-fields-during-publish branch August 10, 2023 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working QA approved Ready for MERGE To be set by author or maintainer
Development

Successfully merging this pull request may close these issues.

8 participants