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

feat: set correct association with references #793

Merged
merged 13 commits into from
Apr 11, 2024
Merged

Conversation

dpilch
Copy link
Member

@dpilch dpilch commented Mar 6, 2024

Description of changes

Update associations to use custom field names when using references. Previously associations to used the implicit names when references were set.

See #806 for spec.

Codegen Paramaters Changed or Added

N/A

Issue #, if available

N/A

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Changes are tested on windows. Some Node functions (such as path) behave differently on windows.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dpilch dpilch marked this pull request as ready for review March 15, 2024 15:26
@dpilch dpilch requested a review from a team as a code owner March 15, 2024 15:26
@dpilch dpilch enabled auto-merge (squash) March 19, 2024 21:32
atierian
atierian previously approved these changes Mar 21, 2024
@dpilch dpilch disabled auto-merge April 1, 2024 16:40
@dpilch dpilch marked this pull request as draft April 1, 2024 16:40
@dpilch dpilch changed the base branch from main to feature/gen2-release April 10, 2024 14:15
@dpilch dpilch changed the base branch from feature/gen2-release to main April 10, 2024 14:26
@dpilch dpilch changed the base branch from main to main-to-gen2 April 10, 2024 14:35
Base automatically changed from main-to-gen2 to feature/gen2-release April 10, 2024 15:51
targetName: targetNames[0],
targetNames,
reference,
Copy link
Member

Choose a reason for hiding this comment

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

naming nit for the variable and the CodeGenFieldConnection type: useReferences or isUsingReferences?

@dpilch dpilch marked this pull request as ready for review April 10, 2024 20:50
@dpilch dpilch merged commit a6efa72 into feature/gen2-release Apr 11, 2024
5 checks passed
@dpilch dpilch deleted the references branch April 11, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants