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

Event attachments: Enable directory selection #6534

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

kesselb
Copy link
Contributor

@kesselb kesselb commented Nov 29, 2024

Summary:

It’s possible to attach files to an event. An internal or public share link is stored within the event.

On the main branch, adding a folder currently doesn’t work (while selection is possible, the folder isn’t actually added). It’s unclear to me from the initial implementation #4251 whether folder support was intended or not.

Folders typically don’t have a content type returned, so I added a fallback to display the folder icon.

B A
Screenshot From 2024-11-29 15-57-02 Screenshot From 2024-11-29 15-39-05

Warning

Adding another attendeed will generate a public share link instead of the internal link. This is apparently broken as well, I will try to address that in a follow up or log an issue.

How to test:

  • Create an event
  • Try to attach a folder
  • Nothing happens on main, it works on this pr.

Signed-off-by: Daniel Kesselberg <[email protected]>
Although folder selection is possible, the callback does not receive the picked node unless `allowDirectories(true)` is explicitly set.

Signed-off-by: Daniel Kesselberg <[email protected]>
Fallback to the folder icon when a content type is missing.

Signed-off-by: Daniel Kesselberg <[email protected]>
@kesselb kesselb added the 3. to review Waiting for reviews label Nov 29, 2024
@kesselb kesselb self-assigned this Nov 29, 2024
@kesselb
Copy link
Contributor Author

kesselb commented Nov 29, 2024

/backport to stable5.0

@backportbot backportbot bot added the backport-request A backport was requested for this pull request label Nov 29, 2024
@kesselb kesselb added the bug label Nov 29, 2024
@kesselb kesselb changed the title Bug/noid/event picker folder Event attachments: Enable directory selection Nov 29, 2024
Copy link

codecov bot commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.33%. Comparing base (454e65d) to head (a099e7b).
Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #6534   +/-   ##
=========================================
  Coverage     23.33%   23.33%           
  Complexity      453      453           
=========================================
  Files           248      248           
  Lines         11777    11777           
  Branches       2257     2257           
=========================================
  Hits           2748     2748           
  Misses         8705     8705           
  Partials        324      324           
Flag Coverage Δ
javascript 14.95% <ø> (ø)
php 59.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kesselb
Copy link
Contributor Author

kesselb commented Nov 29, 2024

/backport to stable4.7

Copy link
Contributor

@SebastianKrupinski SebastianKrupinski left a comment

Choose a reason for hiding this comment

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

Tested. Works

@kesselb kesselb merged commit eb20ee9 into main Dec 3, 2024
37 checks passed
@kesselb kesselb deleted the bug/noid/event-picker-folder branch December 3, 2024 15:59
@backportbot backportbot bot removed the backport-request A backport was requested for this pull request label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants