Skip to content

Conversation

@kmossco
Copy link
Contributor

@kmossco kmossco commented Jul 6, 2018

What changed?

Added a new endpoint that allows to list all conversations for an app, either without passing any parameters or by passing parameters. This closes #69

Added to the model the conversation rating model that was added to the API recently, and fixed a problem with loading conversation parts. This closes #113

@SeanSmithers
Copy link

Can tests be added for these changes?

@kmossco kmossco force-pushed the bv/add_list_conversations branch from e503eaf to ed745a1 Compare July 6, 2018 13:04
@kmossco
Copy link
Contributor Author

kmossco commented Jul 6, 2018

@SeanSmithers added tests for both not sending the parameters, as well as not sending the right ones. 👍

!parameters.ContainsKey("sort") &&
!parameters.ContainsKey("before"))
{
throw new ArgumentException(String.Format("'parameters' argument should include at least order, or sort, or before parameter."));
Copy link
Contributor

Choose a reason for hiding this comment

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

does it actually need to?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, you're right! I misread our docs 🤦‍♂️ Going to change that!

removed bug with params
@kmossco kmossco force-pushed the bv/add_list_conversations branch from d441aea to f7f9420 Compare August 7, 2018 16:43
@kmossco
Copy link
Contributor Author

kmossco commented Aug 7, 2018

@khalilovcmd I removed that artificial limitation, now you can pass whatever parameters are useful. Can I get 👀on this again?

@kmossco kmossco merged commit 797c07c into master Aug 9, 2018
@kmossco kmossco deleted the bv/add_list_conversations branch August 9, 2018 09:44
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.

Conversation model field "conversation_parts" is always null despite it shouldn't Get all conversations

4 participants