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

add project to conversation #1657

Merged
merged 1 commit into from
Jan 11, 2018
Merged

add project to conversation #1657

merged 1 commit into from
Jan 11, 2018

Conversation

snewcomer
Copy link
Contributor

@snewcomer snewcomer commented Dec 26, 2017

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

@@ -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 })
Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor

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');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also alpha here.

@snewcomer snewcomer force-pushed the add-project-to-conversation branch 2 times, most recently from 9623ef4 to 00f09d9 Compare December 27, 2017 15:55
@snewcomer
Copy link
Contributor Author

@joshsmith I think this PR is g2g...

@joshsmith
Copy link
Contributor

It is, save a rebase, which is why I approved and marked as ready to merge.

@joshsmith
Copy link
Contributor

Wait, we don't have project on the API yet, though, do we?

@snewcomer snewcomer force-pushed the add-project-to-conversation branch from 8932425 to c654c15 Compare December 30, 2017 21:52
@snewcomer
Copy link
Contributor Author

Nope. I thought this was the precursor to this PR I believe - code-corps/code-corps-api#1343

@joshsmith joshsmith force-pushed the add-project-to-conversation branch from c654c15 to 7571e57 Compare January 1, 2018 17:27
@snewcomer snewcomer force-pushed the add-project-to-conversation branch from 7571e57 to c654c15 Compare January 2, 2018 16:01
@snewcomer snewcomer force-pushed the add-project-to-conversation branch from c654c15 to 3de4f7b Compare January 9, 2018 21:25
@snewcomer snewcomer force-pushed the add-project-to-conversation branch from 3de4f7b to fab6da0 Compare January 11, 2018 20:07
@snewcomer snewcomer merged commit be88d9f into develop Jan 11, 2018
@snewcomer snewcomer deleted the add-project-to-conversation branch January 11, 2018 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants