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

Data objects: saving relations, exclude non-relational fields from condition #16598

Open
wants to merge 2 commits into
base: 11.2
Choose a base branch
from

Conversation

brusch
Copy link
Member

@brusch brusch commented Feb 12, 2024

No description provided.

@brusch brusch added the Bug label Feb 12, 2024
@brusch brusch added this to the 11.1.6 milestone Feb 12, 2024
Copy link

Review Checklist

  • Target branch (11.1 for bug fixes, others 11.x)
  • Tests (if it's testable code, there should be a test for it - get help)
  • Docs (every functionality needs to be documented, see here)
  • Migration incl. install.sql (e.g. if the database schema changes, ...)
  • Upgrade notes (deprecations, important information, migration hints, ...)
  • Label
  • Milestone

@kingjia90

This comment was marked as resolved.

Copy link

sonarcloud bot commented Mar 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
1.4% Duplication on New Code

See analysis details on SonarCloud

@kingjia90 kingjia90 modified the milestones: 11.2.1, 11.2.2 Mar 14, 2024
@kingjia90 kingjia90 modified the milestones: 11.2.2, 11.2.3 Mar 26, 2024
if (!$this->model->isLazyKeyLoaded($fieldName) || $fd instanceof DataObject\ClassDefinition\Data\ReverseObjectRelation) {
//this is a relation subject to lazy loading - it has not been loaded
$untouchable[] = $fieldName;
if($fd instanceof DataObject\ClassDefinition\Data\Relations\AbstractRelations) {
Copy link
Contributor

@kingjia90 kingjia90 Mar 27, 2024

Choose a reason for hiding this comment

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

Could you please share some insights behind this change?

By following the $untouchable var usages, ended up in this case in URL Slug data type

if (isset($params['isUntouchable']) && $params['isUntouchable']) {
return;
}

Before PR it's true, after PR is always false, not sure if there was something legacy leftover but looks like a potential behavior change

@kingjia90 kingjia90 modified the milestones: 11.2.3, 11.2.4 Apr 23, 2024
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.

None yet

3 participants