Skip to content

Unify questions and insights into single endpoint#3

Open
decarbonization wants to merge 2 commits intomasterfrom
insight-question-unification
Open

Unify questions and insights into single endpoint#3
decarbonization wants to merge 2 commits intomasterfrom
insight-question-unification

Conversation

@decarbonization
Copy link
Contributor

Since shipping 1.0.0, the client has displayed questions and insights in a single view. Assuming this continues to be true for the foreseeable future, it makes a lot of sense to merge these two endpoints into one from the client's perspective.

To achieve this, I've specced an endpoint that returns a collection of polymorphic attachment objects. This allows us to present multiple related data types, and potentially collect user feedback in direct response to information displayed.


In addition to this, I've also specced out a basic last viewed / unread count mechanism to allow the clients to cheaply display unread indicators when the insights view is not visible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure this is the best way to do grouping. We might want to restrict an AttachmentCollection to a single type to make processing easier, but this could also be used to represent question / graph / insight compound cards, which could be a good thing.

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.

2 participants