-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Possibility to tag people! #86
Comments
Would make more sense if Backstage had some sort of notification support. Sure, this could be done now using the broker and let app developers handle it themselves and later, if the notification support comes along, extend also to it. On the other thought, why should this only be limited to users? I think tagging groups would also be a nice thing. Don't know how hard it is to implement to be honest, but if you want to give it a try, you are most welcome to do so :) If you don't have time for that, I may take a look at some point. How does this sound? |
LGTM! I am on vacation now. When I come back, I will take a look! |
Hey @antoniomuso ! Do you have any new thoughts about this? I would really like to have something like this in place especially when the new notifications plugin is under way in the backstage project. Do you have any ideas if there's ready made UI component to show suggestions for tagging? In the backend side I don't think this is very hard to accomplish |
Hi @drodil, I didn't research on that. I don't think some UI component exists, but it is simple to handle using Entity catalog Api |
Yeah @antoniomuso it's simple to fetch the users, only problem is how it could work in the UI like it does for example here on GitHub when mentioning someone. Maybe it also requires that backend has to parse the user entities from the content to add the tags. This also highly relates to #61 because without notifications there's not much sense to tag anyone. |
With API, you can query and get all the users starting with characters you pass as input. /**
* Gets paginated entities from the catalog.
*
* @remarks
*
* @example
*
* ```
* const response = await catalogClient.queryEntities({
* filter: [{ kind: 'group' }],
* limit: 20,
* fullTextFilter: {
* term: 'A',
* }
* orderFields: { field: 'metadata.name' order: 'asc' },
* });
* ```
*
* this will match all entities of type group having a name starting
* with 'A', ordered by name ascending.
*
* The response will contain a maximum of 20 entities. In case
* more than 20 entities exist, the response will contain a nextCursor
* property that can be used to fetch the next batch of entities.
*
* ```
* const secondBatchResponse = await catalogClient
* .queryEntities({ cursor: response.nextCursor });
* ```
*
* secondBatchResponse will contain the next batch of (maximum) 20 entities,
* together with a prevCursor property, useful to fetch the previous batch.
*
* @public
*
* @param request - Request parameters
* @param options - Additional options
*/
queryEntities(request?: QueryEntitiesRequest, options?: CatalogRequestOptions): Promise<QueryEntitiesResponse>;
|
In my instance, I had implemented the notification system thanks to the Action events. |
Hi @drodil, Need your views on saving it to DB or just get it from content and notify them ? |
I think it would be enough to just get it from the content and introduce a function for getting an array of entity refs starting with Are you using the |
yes, using catalogApi.queryEntities. Agree to not save in DB as not much use of it other than notification, one use case I can see is filtering question which has logged in user mentioned. |
Yeah, that could be one use case. If it's not too much trouble to save those in DB, maybe we should do that then? Anyways we need to parse the entities from the content. And what comes to the filtering, maybe there could be a new checkbox filter |
I would like to work on this, please check below things and let me know if missing anything:
|
Awesome, sounds like a plan. Some thoughts:
Otherwise, it looks like it's ready for implementation! Thanks a lot again! |
Oh, another thing to point number 7: I think @antoniomuso also requested an event using the |
Sure @drodil, I started working on it.
|
Hi, |
What do you think about the feature of tagging people?
USE CASE:
Typing a Question/Answer you can use
@persone
with suggestions to tag a person. The tag could be an event in EventBroker. Currently, there are these action kinds:We can add to these the
tag
Action! WDYT?The text was updated successfully, but these errors were encountered: