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

Include "before" and "after" copy events as with move events #1396

Merged
merged 2 commits into from
Jun 20, 2022

Conversation

jvillafanez
Copy link
Contributor

The same way "beforeMove" and "afterMove" events are triggered, the new "beforeCopy" and "afterCopy" events will be triggered during a COPY request.

@DeepDiver1975
Copy link
Member

There should be unit tests for event handling. Please have a look and extend the tests. Thx 🙏

@codecov
Copy link

codecov bot commented Mar 29, 2022

Codecov Report

Merging #1396 (347e775) into master (130abb7) will decrease coverage by 0.11%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #1396      +/-   ##
============================================
- Coverage     97.19%   97.07%   -0.12%     
+ Complexity     2826     2820       -6     
============================================
  Files           175      175              
  Lines          8352     7703     -649     
============================================
- Hits           8118     7478     -640     
+ Misses          234      225       -9     
Impacted Files Coverage Δ
lib/DAV/CorePlugin.php 95.17% <100.00%> (-0.19%) ⬇️
lib/DAVACL/PrincipalCollection.php 28.57% <0.00%> (-11.43%) ⬇️
lib/DAV/Auth/Backend/IMAP.php 22.22% <0.00%> (-4.10%) ⬇️
lib/DAV/PropertyStorage/Plugin.php 91.17% <0.00%> (-1.69%) ⬇️
lib/DAV/Xml/Request/ShareResource.php 90.00% <0.00%> (-1.67%) ⬇️
lib/DAV/Auth/Backend/File.php 92.30% <0.00%> (-1.03%) ⬇️
lib/CalDAV/SharedCalendar.php 95.91% <0.00%> (-1.01%) ⬇️
lib/DAV/Browser/MapGetToPropFind.php 90.90% <0.00%> (-0.76%) ⬇️
lib/DAV/Xml/Property/SupportedReportSet.php 95.83% <0.00%> (-0.72%) ⬇️
lib/DAVACL/FS/Collection.php 88.23% <0.00%> (-0.66%) ⬇️
... and 132 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@jvillafanez jvillafanez force-pushed the explicit_copy_events branch from f9c9d7d to 5f6e466 Compare March 29, 2022 14:45
@jvillafanez jvillafanez force-pushed the explicit_copy_events branch from 5f6e466 to 347e775 Compare March 31, 2022 09:02
@jvillafanez
Copy link
Contributor Author

I don't think I can rise the project coverage taking into account that the patch has 100% coverage. There might be tests missing outside of the scope of this PR.

@mmattel
Copy link

mmattel commented Jun 20, 2022

@DeepDiver1975 merging?

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.

3 participants