Skip to content

Conversation

@begedin
Copy link
Contributor

@begedin begedin commented Dec 13, 2017

What's in this PR?

Setting the base to #1278 for the time being, since it's not merged yet, so reviews can be easier. Base should be changed to develop once #1278 is merged.

This PR adds Conversation and ConversationPart schemas and models, with correct associations with CodeCorps.Message, CodeCorps.User as well as each other.

I also implemented the factories for the two new models and have added indexes based on what we intend to filter the records by.

References

Fixes #1286

Progress on: https://github.com/code-corps/code-corps-api/milestone/22

@begedin begedin requested a review from joshsmith December 13, 2017 06:48
@begedin begedin changed the base branch from develop to add-messages December 13, 2017 06:49
@joshsmith
Copy link
Contributor

I think I'd specified either open or closed as a boolean rather than a string. There are perf implications to one vs the other and if it's only anticipated to be a boolean, we should treat it as a boolean.

@begedin begedin force-pushed the 1286-conversation-models branch from 5603b77 to 51b35b4 Compare December 13, 2017 09:31
@joshsmith joshsmith changed the base branch from add-messages to develop December 13, 2017 19:15
…Part}

- included factories
- included has_many :conversations in CodeCorps.Message
@joshsmith joshsmith force-pushed the 1286-conversation-models branch from 51b35b4 to 30c9b07 Compare December 13, 2017 19:17
@joshsmith
Copy link
Contributor

Coverage went down because factories are unused, but that will change.

@joshsmith joshsmith merged commit d64bab9 into develop Dec 13, 2017
@joshsmith joshsmith deleted the 1286-conversation-models branch January 1, 2018 06:02
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.

3 participants