-
Notifications
You must be signed in to change notification settings - Fork 67
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
Provide tags #1147
Comments
I recommend to add a flag to the request to opt-in into this, also that might have quite some bad performance impact if done incorrectly. Should definitely only be populated in post-processing stage, so we can load all tags of all file ids with a single request. Follow the "previews" parameter from those two methods to see opt-in in action: I would implement it before these lines: |
Since it's then used by official clients, it should be documented in https://github.com/nextcloud/activity/blob/master/docs/endpoint-v2.md#parameters as well |
@nextcloud/designers Or shall tags only be shown if activity is only for one file/folder? |
I would agree with Tobi, if one file was changed, show tags also If multiple files were changed: Additionally if it is possible to find out if the same tags were added to multiple files then they could be shown together |
The question was not about when tags are assigned/removed, but how to show combined activity: User A changed files 1, 2, 3 1 is tagged with 1A, 1B and 1C We can not put those 9 tags in a single subline without giving indication which item is being referred to |
Right, in that case we can say "User A has added tags to files 1, 2, and 3" like I mentioned. And in case 1, 2, and 3 are all tagged with the same tags A and B, "User A has added tags A and B to 1, 2, and 3" but this is a nice-to-have. |
It's not about the tagging action, it's about show the tags of files that were created/modified. |
Yes, I understand, I mean we don't have to show the individual tags if there are multiple files, like Tobi mentioned. |
If there is any performance concern with this then maybe it makes more sense to not do it in Activity (i.e. the desktop tray menu) but only in the details view (which is only one click away)? So we do have the tags in file listings (like mobile apps and web view) but since the desktop app is an activity list, it does not need it. |
From my side it is not about performance, but about how to show tags in case of multiple files. |
I simply wouldn't show tags for activities on files/folders except if a file/folder got tagged, then show that as an activity. I don't think it adds extra value to the activity feed. Just my opinion. |
@jancborchardt please clarify, as this was your idea/wish :-) |
Yep, after thinking about it more, considering possinle designs and drawbacks I have to agree with @AndyScherzinger. And as I said above, resoning:
Of course for activities which are for tagging / removing tags, those should show in the stream. |
For nextcloud/files-clients#39 it is needed to have tags within activity stream.
Jan wished to have this only on Desktop, but other clients then also shall implement it.
From API side adding "tags": "['tag 1', 'tag 2'] might be the easiest, without breaking anything?
@AndyScherzinger for planning
@artonge @miaulalala for actual work
The text was updated successfully, but these errors were encountered: