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

Put inversedBy only once for manyToMany and oneToOne relations when creating a content-type #15224

Merged

Conversation

petersg83
Copy link
Contributor

What does it do?

Put inversedBy only once for manyToMany and oneToOne relations when creating a content-type

Why is it needed?

A fix was already done here but it was partial (only fixing the issue when updating a content-type, not when creating it)

How to test it?

  1. Create a content-type with a many-to-many relation.
  2. Check the schemas

Related issue(s)/PR(s)

#15037

@petersg83 petersg83 added this to the 4.5.5 milestone Dec 20, 2022
@petersg83 petersg83 added source: core:content-type-builder Source is core/content-type-builder package pr: fix This PR is fixing a bug labels Dec 20, 2022
@codecov
Copy link

codecov bot commented Dec 20, 2022

Codecov Report

Base: 60.34% // Head: 60.34% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (4dc1d47) compared to base (76bdf07).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15224      +/-   ##
==========================================
- Coverage   60.34%   60.34%   -0.01%     
==========================================
  Files        1367     1367              
  Lines       33268    33270       +2     
  Branches     6352     6353       +1     
==========================================
  Hits        20076    20076              
- Misses      11347    11348       +1     
- Partials     1845     1846       +1     
Flag Coverage Δ
back 50.36% <0.00%> (-0.01%) ⬇️
front 64.80% <ø> (ø)
unit_back 50.36% <0.00%> (-0.01%) ⬇️
unit_front 64.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...er/services/schema-builder/content-type-builder.js 8.39% <0.00%> (-0.14%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@petersg83 petersg83 merged commit f0080e3 into main Dec 21, 2022
@petersg83 petersg83 deleted the fix/twice-inversed-by-when-creating-CT-with-relations branch December 21, 2022 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix This PR is fixing a bug source: core:content-type-builder Source is core/content-type-builder package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants