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

Content type builder always remove "autoPopulate" options in models #4150

Closed
karnadii opened this issue Sep 30, 2019 · 2 comments · Fixed by #4949
Closed

Content type builder always remove "autoPopulate" options in models #4150

karnadii opened this issue Sep 30, 2019 · 2 comments · Fixed by #4949
Labels
good first issue Good for newcomers issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve status: confirmed Confirmed by a Strapi Team member or multiple community members

Comments

@karnadii
Copy link

Describe the bug
Content type builder always remove "autoPopulate" options in models

Steps to reproduce the behavior

  1. create many to many relationship with 2 models
  2. edit model setting to disable autoPopulate by adding "autoPopulate": false
  3. add some field in one of model using content type builder. and save it.
  4. see the different using git diff
-    "chapters": {
-      "collection": "chapter",
-      "via": "novel",
-      "autoPopulate": false
-    },


+    "chapters": {
+      "collection": "chapter",
+      "via": "novel"
+    },

Expected behavior
dont remove edited custom model while using content type builder

Screenshots
If applicable, add screenshots to help explain your problem.

Code snippets
If applicable, add code samples to help explain your problem.

System

  • Node.js version: v12.9.1
  • NPM version: 6.10.2
  • Strapi version: 3.0.0-beta.16.1
  • Database: mongodb
  • Operating system: ubuntu

Additional context
Add any other context about the problem here.

@lauriejim lauriejim added good first issue Good for newcomers severity: medium If it breaks the basic use of the product but can be worked around status: confirmed Confirmed by a Strapi Team member or multiple community members issue: bug Issue reporting a bug labels Oct 2, 2019
@lauriejim
Copy link
Contributor

Hello, thank you for reporting this issue. We are currently on another feature and bug fix. Since time is lacking on our side, feel free investigate and submit a PR, we’ll appreciate your contribution on this issue!

Check out the contributing guide to get started: https://github.com/strapi/strapi/blob/master/CONTRIBUTING.md

I suggest you check how the plugin content-type-builder work to let you fix this issue.
Thank you for your time.

@meinvolk
Copy link

I will look into this one.

@lauriejim lauriejim added severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve and removed severity: medium If it breaks the basic use of the product but can be worked around labels Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve status: confirmed Confirmed by a Strapi Team member or multiple community members
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants