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: improve nested folder handling #1600

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Conversation

theSuess
Copy link
Member

@theSuess theSuess commented Jul 2, 2024

This fixes some issues around the move logic. The underlying issue was the way in which folder existence was checked. As the search folder endpoint does not return nested folders, moving between folders was not possible. This fix prefers matching by UIDs first.

Note that the introduction of nested folders implies that they will only work with folders created by the operator as names no longer need to be unique and the only way to keep track is to use the UID.

Also introduces status conditions for the folder resource to better debug issues.

This fixes some issues around the move logic. The underlying issue was the way
in which folder existence was checked. As the search folder endpoint does _not_
return nested folders, moving between folders was not possible. This fix prefers
matching by UIDs first.

Note that the introduction of nested folders implies that they will only work
with folders created by the operator as names no longer need to be unique and
the only way to keep track is to use the UID.
Copy link
Collaborator

@NissesSenap NissesSenap left a comment

Choose a reason for hiding this comment

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

LGTM

@theSuess theSuess added this pull request to the merge queue Jul 4, 2024
Merged via the queue into master with commit 58f6a0c Jul 4, 2024
14 checks passed
@theSuess theSuess deleted the feat/folder-conditions branch July 4, 2024 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants