-
Notifications
You must be signed in to change notification settings - Fork 78
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
add project to conversation #1657
Conversation
app/models/conversation.js
Outdated
@@ -10,5 +10,6 @@ export default Model.extend({ | |||
|
|||
conversationParts: hasMany('conversation-part', { async: true }), | |||
message: belongsTo('message', { async: true }), | |||
user: belongsTo('user', { async: true }) | |||
user: belongsTo('user', { async: true }), | |||
project: belongsTo('project', { async: true }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshsmith since a project already exists on the message
, I wasn't sure if there was another way to pass up the project_id to the backend than this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just make sure to alpha order here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just make sure to alpha order here.
@@ -18,3 +18,4 @@ test('it exists', function(assert) { | |||
testForAttributes('conversation', ['insertedAt', 'readAt', 'status', 'updatedAt']); | |||
testForBelongsTo('conversation', 'message'); | |||
testForBelongsTo('conversation', 'user'); | |||
testForBelongsTo('conversation', 'project'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also alpha here.
9623ef4
to
00f09d9
Compare
00f09d9
to
8932425
Compare
@joshsmith I think this PR is g2g... |
It is, save a rebase, which is why I approved and marked as |
Wait, we don't have |
8932425
to
c654c15
Compare
Nope. I thought this was the precursor to this PR I believe - code-corps/code-corps-api#1343 |
c654c15
to
7571e57
Compare
7571e57
to
c654c15
Compare
c654c15
to
3de4f7b
Compare
3de4f7b
to
fab6da0
Compare
This will send up the project_id to the API in order to help with the below issue on the api side.
References
code-corps/code-corps-api#1313