Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Support area should be set for topics #221

Closed
ruKurz opened this issue Mar 5, 2018 · 9 comments
Closed

Support area should be set for topics #221

ruKurz opened this issue Mar 5, 2018 · 9 comments
Assignees
Milestone

Comments

@ruKurz
Copy link
Collaborator

ruKurz commented Mar 5, 2018

It must be ensured that a support area is set for each topic.
Therefore the support area of a topic should be set to the topic name itself.
By implementing this issue, updating existing conversations must be considered.

@ruKurz ruKurz added this to the v0.7.1 milestone Mar 5, 2018
@ruKurz ruKurz added the ready label Mar 5, 2018
@westei
Copy link
Member

westei commented Mar 6, 2018

@mrsimpson: Oliver can you please describe how we are getting the Support Area information for the topic channels.

@Peym4n the Smarti Widget needs to take care of applying changed meta information (such as the support area) to existing conversations in Smarti. Please check if their is a Channel update event in Rocket.Chat

@ruKurz
Copy link
Collaborator Author

ruKurz commented Mar 17, 2018

topic channels are currently named expertise within the RC code. Expertises are defined in

packages/assistify-help-request/lib/roomTypes/expertise.js

and extending the regular room type configs within Rocket.Chat (RoomTypeConfig).

In order to pass the supportArea within the SmartiAdapter the following lines of code should help. Please note: I did not test the code running:

expertiseRoom = RocketChat.models.Rooms.findOneById(message.rid)
if (expertiseRoom.type == 'e') {
  // the room with id: message.rid, is an expertise
  supportArea = expertiseRoom.name;
}

@mrsimpson could you please confirm that this is a possible/good solution?
@Peym4n could you please confirm, that this info does help you along?

@ruKurz
Copy link
Collaborator Author

ruKurz commented Mar 19, 2018

as discussed in our meeting: It's possible and probably also best meaningful always to pass the .topic-property of the room as support area for all roomtypes

@mrsimpson
Copy link
Collaborator

mrsimpson commented Mar 19, 2018

fixed with assistify/Rocket.Chat@48a7f5a

we thought of passing a stable (non human-readable guid) if available for the topic hierarchy level. wdyt?

@Peym4n Peym4n added in progress and removed ready labels Mar 20, 2018
Peym4n pushed a commit to redlink-gmbh/Rocket.Chat that referenced this issue Mar 20, 2018
@Peym4n
Copy link
Contributor

Peym4n commented Mar 20, 2018

@mrsimpson, I just saw your commit.
LGTM.
I'll revert my commit.

@Peym4n Peym4n removed their assignment Mar 20, 2018
@westei
Copy link
Member

westei commented Apr 11, 2018

We still have the Issue that the support_area is not set for pre-existing topics. We need to find a way to set the correct support_area for those!

@westei westei assigned Peym4n and unassigned mrsimpson Apr 11, 2018
@westei
Copy link
Member

westei commented Apr 11, 2018

For those conversations we do not have any information about the correct support_area. So we can not fix this by a simple Mongo update script. We need to trigger those updates from the widget.

The only thing we can do is to provide a service that allows to find all conversations in Smarti that do not have an support_area.

@mrsimpson any suggestions?

@mrsimpson
Copy link
Collaborator

mrsimpson commented Apr 11, 2018

@westei agreed, this cannot be fixed only from Smarti.
We just implemented a full-sync-mechanism which allows to clean-up inconsistencies like this one: assistify/Rocket.Chat#279
This is going to be merged to develop soon

@westei
Copy link
Member

westei commented Apr 12, 2018

Ok so I am moving this over to review again.

@ja-fra ja-fra closed this as completed Apr 20, 2018
@ghost ghost removed the in review label Apr 20, 2018
mrsimpson pushed a commit to assistify/Rocket.Chat that referenced this issue May 14, 2018
* Smarti-203: Flag widget messages
* Smarti-203: Rename widget message flag to skipAnalysis
* Smarti-52: Add support for edited messages
* redlink-gmbh/smarti#221: Set room topic as support area for conversation
* Revert "redlink-gmbh/smarti#221: Set room topic as support area for conversation"
 This reverts commit c7966a3.
* redlink-gmbh/smarti#225: Fix widget footer styling
* redlink-gmbh/smarti#220: Improve error handling
* SmartiWidgetBackend: Improve error handling
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants