Page MenuHomePhorge

Shared folders
ClosedPublic

Authored by machniak on Dec 3 2021, 9:55 AM.
Tags
None
Referenced Files
F12094038: D3071.id8882.diff
Wed, May 8, 9:07 PM
F12093546: D3071.id8765.diff
Wed, May 8, 7:31 PM
Unknown Object (File)
Mon, May 6, 3:29 PM
Unknown Object (File)
Sun, May 5, 10:32 AM
Unknown Object (File)
Sun, May 5, 7:02 AM
Unknown Object (File)
Thu, May 2, 3:09 PM
Unknown Object (File)
Tue, Apr 30, 11:15 AM
Unknown Object (File)
Wed, Apr 17, 12:15 PM
Subscribers
Restricted Project

Details

Reviewers
mollekopf
Group Reviewers
Restricted Project
Commits
rKa7cd372f8179: Shared folders
rK9da1d8fde793: Shared folders
Test Plan

./phpunit

Diff Detail

Repository
rK kolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

machniak created this revision.
  • Fix regression
  • Complete imap tests
  • Cleanup and more tests
  • Re-title shared_folders SKU to shared-folders for consistency with others
  • Make phpstan happy
  • Make phpstan happy, now we're green
  • Add tests for resource's jobs
  • Add tests for shared folders' jobs
mollekopf subscribed.

Looks good aside from the non-blocking comments.

src/app/Http/Controllers/API/V4/PaymentsController.php
170

This doesn't belong in this patch I think.

src/app/SharedFolder.php
1

Perhaps a Resource should become a SharedFolder (via inheritance directly, or perhaps via a baseclass to avoid including the wrong traits),? Otherwise we just duplicate code.

This revision is now accepted and ready to land.Dec 17 2021, 9:34 AM

From manual testing it seems to me that a new shared folder never makes it out of the "Not Ready" state.
The controller is repeatedly queried for a status update, but the code never checks back in imap/ldap after initially failing on a GETMETADATA command (when creating the folder).

The only way to get it active is to wait for a Refresh button to appear (after a pretty long timeout), pressing it immediately turns it to active.

Could be that it fixes itself when waiting for longer, but from a UX perspective it's not ideal (but perhaps just a later enhancement).

This revision was automatically updated to reflect the committed changes.