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

Having a user watch/track changes to any discussion of a page #10

Closed
sylque opened this issue Dec 19, 2018 · 4 comments
Closed

Having a user watch/track changes to any discussion of a page #10

sylque opened this issue Dec 19, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@sylque
Copy link
Owner

sylque commented Dec 19, 2018

Sometimes, the web page that is being discussed has got an "owner", and this "owner" wants to be notified whenever something happens in any discussion in the page.

@sylque
Copy link
Owner Author

sylque commented Dec 19, 2018

Every Docuss balloon corresponds to a Discourse tag. So what needs to be done here is, for the "owner", to enable notifications for all those tags.

Right now tags are created when a first topic is created. This saves a lot of useless tags, because in a document with hundreds of balloons, many will never have topics.

I see two solutions :

1. Allowing creation of tags beforehand, i.e. at web page creation

This would have the drawback of creating many useless tags.

I see two ways to implement this:
1.1. Docuss could provide a client-side API function: it would allow the user currently logged-in in Discourse to create the tags and enable notifications. Drawback: the client app would need to ensure that page creation is possible only when the user is logged-in in Discourse.
1.2. The client app could use the Discourse API (Docuss could provide an interface to ease that process). This would require the client to set up an API key and connect its app to the Discourse server correctly (deployment complexity).

2. Catching tag creation and enabling notifications on the fly

This would require server-server communication between Discourse and a client app, the client app being in charge of knowing "owners" of pages. One way of doing this would be to use Discourse webhooks and then to use the same solution as 1.2 above.

@sylque
Copy link
Owner Author

sylque commented Dec 19, 2018

@sylque
Copy link
Owner Author

sylque commented Mar 26, 2019

I'm planning to implement solution 1.1 in the near future. The Docuss API will provide a function track(dcsTag).

@sylque sylque transferred this issue from another repository Jul 31, 2019
@sylque sylque changed the title Feature request: having a user watch/track changes to any discussion of a page Having a user watch/track changes to any discussion of a page Jul 31, 2019
@sylque sylque added the enhancement New feature or request label Jul 31, 2019
@sylque sylque closed this as completed Sep 8, 2019
@sylque
Copy link
Owner Author

sylque commented Sep 8, 2019

Implemented in dcs-discourse-plugin2 v1.0.22 and dcs-client v1.0.20. See the documentation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant