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

Don't allow saving of the many side on a one to many relationship #1061

Merged
merged 4 commits into from
Oct 23, 2015

Conversation

jrjohnson
Copy link
Member

  • Ember data doesn’t send this data, and symphony won’t update from this side, so we shouldn’t allow the form field at all.
  • Ensure that entities __construct method sets up necessary empty properties on creation.
  • Test to ensure that these are set in the entity unit tests
  • Don't submit the many side of a one to many relationship in controller tests

Fixes #1059

Ember data doesn’t send this data, and symphony won’t update from this
side, so we shouldn’t allow the form field at all.
Ensure that entities __construct method sets up necessary empty properties on creation
Test to ensure that these are set in the entity unit tests
Don't submit the many side of a one to many relationship in controller tests
@jrjohnson jrjohnson added this to the v3.0.0 milestone Oct 23, 2015
@jrjohnson jrjohnson removed this from the v3.0.0 milestone Oct 23, 2015
These don't persist well due to the manyToMany and the string based key.
@stopfstedt
Copy link
Member

👍

@homu +r

@jrjohnson
Copy link
Member Author

@homu r=stopfstedt

@homu
Copy link
Contributor

homu commented Oct 23, 2015

📌 Commit 497018b has been approved by stopfstedt

@homu
Copy link
Contributor

homu commented Oct 23, 2015

⌛ Testing commit 497018b with merge 7c9b066...

homu added a commit that referenced this pull request Oct 23, 2015
Don't allow saving of the many side on a one to many relationship

- Ember data doesn’t send this data, and symphony won’t update from this side, so we shouldn’t allow the form field at all.
- Ensure that entities __construct method sets up necessary empty properties on creation.
- Test to ensure that these are set in the entity unit tests
- Don't submit the many side of a one to many relationship in controller tests

Fixes #1059
@homu
Copy link
Contributor

homu commented Oct 23, 2015

☀️ Test successful - status

@homu homu merged commit 497018b into ilios:master Oct 23, 2015
@jrjohnson jrjohnson deleted the one-to-many-api branch October 23, 2015 15:50
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.

None yet

3 participants