Repository navigation
Fixes setAssociation with scope - #7159
Conversation
Codecov ReportContinue to review full report at Codecov.
|
janmeier
left a comment
There was a problem hiding this comment.
Code looks good, just some style comments
| }).bind({}).spread(function(post, comment) { | ||
| this.post = post; | ||
| this.comment = comment; | ||
| return Tag.create({ name: 'tag1' }); |
There was a problem hiding this comment.
This can be created together with the post and comment
| return Tag.create({ name: 'tag1' }); | ||
| }).then(function(tag) { | ||
| this.tag = tag; | ||
| return this.post.setTags([tag]); |
There was a problem hiding this comment.
Promise.join(post.setTags, comment.setTags)
There was a problem hiding this comment.
If I do it like that, I can't reproduce the issue, I need to add the tag to the post and then, add it to the comment.
| taggable: { | ||
| type: DataTypes.STRING, | ||
| }, | ||
| taggable_id: { |
There was a problem hiding this comment.
Funky indentation in the mode defintions
|
@janmeier I did the changes that you suggested to. |
|
@janmeier Do you know when are you going to release this fix? |
…e step sequelize#7159 (sequelize#7165)" This reverts commit d4f742a.
|
@pola88 Hey, do you want to remerge master and re-run the tests? One of the test failures is transient whereas the other was probably fixed in master. This is an important fix for scopes. |
f99f044 to
6156a81
Compare
|
@elasticsearcher I merged master, We need to wait for @janmeier |
|
ok! good to know, I will do it later |
|
@elasticsearcher I created the PR for v3, if you need it #7223 |
|
@pola88 Nice, hopefully it will make into a release soon. |
…equelize#7159 (sequelize#7165) * Fixes creation of polymorphic belongToMany associations in one step * Fix test failure for MSSQL * Fix tests
* Fixes setAssociation with scope * Fixes style
fixing: #7153