Repository navigation
fix(salesforce): rebuild each relationship's join criteria independently - #593
Merged
jbonofre merged 1 commit intoOct 16, 2026
Conversation
jbonofre
self-requested a review
October 16, 2026 08:10
jbonofre
approved these changes
Oct 16, 2026
jbonofre
left a comment
Member
There was a problem hiding this comment.
Building criteria from validateRelationships fixes the shift that a filtered relationship caused for the ones after it, and switching return to continue means one unpairable relationship no longer wipes out criteria for the rest.
LGTM! Thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Criteria are rebuilt per relationship after the relationships are mapped, and two
things made one relationship's state leak into the others:
dropped before mapping, but the criteria were rebuilt by pairing the Salesforce
relationships with the unfiltered Ossie list, so every relationship after a
dropped one took the preceding relationship's join columns;
from_columnsandto_columnscannot be paired returnedout of the loop instead of skipping that one relationship, so every relationship
after it was exported with no criteria at all.
Exporting a model whose first relationship is dropped produced a surviving
relationship joining on a column that does not exist, which Salesforce rejects
with
ENTITY_NOT_VALID, and left a metric spanning that join unable to resolve.Rebuild each relationship's criteria from the same filtered list the relationships
were mapped from, and independently of its neighbours.
The test added with #404 pinned the error the mismatched criteria produced; with
the criteria correct it now pins the metric resolving against the surviving
relationship's own join columns.
Verification
mvn -B clean verifyinconverters/salesforce: 353 tests, 0 failures, 0 errors,apache-rat:checkclean.ENTITY_NOT_VALIDbefore this change -- the first naming the join column thesurviving relationship inherited, the second naming the relationship left
without criteria -- and both are accepted
201after it, with the org readingthe criteria back as declared.
Related Issues
No existing issue covers this.
Checklist
Converters
Tests
Compliance