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

fix(systemtags): Sub folders should be opened in files #47135

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Aug 8, 2024

Summary

Currently this is simply broken and here are two ways:

  1. Open subfolders in files view
  2. Implement logic to save last request

1 is the way this is now implemented, basically copy-paste from the recent view. 2 is much more complicated because if we get /2/foo/bar as the path we need to know the source of foo, so we would need at least 2 requests or cache the previous directory. We do not do it like this for any view so lets just stick with 1 for now.

Checklist

@susnux susnux marked this pull request as ready for review August 8, 2024 16:39
@susnux susnux added this to the Nextcloud 30 milestone Aug 8, 2024
import { type Node, FileType, FileAction, DefaultType } from '@nextcloud/files'

export const action = new FileAction({
id: 'systemtags:open-in-files',
Copy link
Member

Choose a reason for hiding this comment

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

This bother me more than it should 😅😅

@Altahrim Altahrim mentioned this pull request Aug 8, 2024
Currently this is simply broken and here are two ways:
1. Open subfolders in files view
2. Implement logic to save last request

1 is the way this is now implemented, basically copy-paste from the recent view.
2 is much more complicated because if we get `/2/foo/bar` as the path we need to know the source of `foo`, so we would need at least 2 requests or cache the previous directory. We do not do it like this for any view so lets just stick with 1 for now.

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux merged commit 4591c18 into master Aug 9, 2024
111 checks passed
@susnux susnux deleted the fix/open-tags-in-folder branch August 9, 2024 13:50
@skjnldsv skjnldsv mentioned this pull request Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants