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

Issue 184 #201

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Issue 184 #201

wants to merge 6 commits into from

Conversation

jamesros161
Copy link
Contributor

This pull request is to resolve issue-184

The issues appears to be due to the set_writable_permissions() function not accounting for systems that do not use the ZipArchive package, but uses the PclZip package instead.

Copy link
Contributor

@bwmarkle bwmarkle left a comment

Choose a reason for hiding this comment

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

@jamesros161 can we add some automated tests to ensure this is working as expected? To write those tests, it may help to separate the compressor logic into their own classes in the compressors folder.

@jamesros161
Copy link
Contributor Author

@jamesros161 can we add some automated tests to ensure this is working as expected? To write those tests, it may help to separate the compressor logic into their own classes in the compressors folder.

Will do. I may have to revisit this whole thing since it was written before you added the System Zip functionality

@codecov-io
Copy link

codecov-io commented Feb 25, 2020

Codecov Report

Merging #201 into master will increase coverage by 3.19%.
The diff coverage is 51.45%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #201      +/-   ##
============================================
+ Coverage     20.42%   23.61%   +3.19%     
- Complexity     2547     2669     +122     
============================================
  Files           169      190      +21     
  Lines         12281    13001     +720     
============================================
+ Hits           2508     3070     +562     
- Misses         9773     9931     +158
Impacted Files Coverage Δ Complexity Δ
boldgrid-backup.php 0% <ø> (ø) 0 <0> (ø) ⬇️
admin/card/class-database-encryption.php 0% <0%> (ø) 1 <1> (?)
admin/card/class-history.php 0% <0%> (ø) 1 <1> (?)
admin/card/class-backups.php 0% <0%> (ø) 2 <0> (+1) ⬆️
...min/class-boldgrid-backup-admin-plugin-notices.php 0% <0%> (ø) 4 <4> (?)
admin/card/class-one-click-restoration.php 0% <0%> (ø) 1 <1> (?)
admin/partials/boldgrid-backup-admin-test.php 0% <0%> (ø) 0 <0> (ø) ⬇️
tests/bootstrap.php 0% <0%> (ø) 0 <0> (ø) ⬇️
admin/class-boldgrid-backup-admin-settings.php 23.45% <0%> (+11.11%) 145 <3> (ø) ⬇️
admin/card/class-historical-versions.php 0% <0%> (ø) 1 <1> (?)
... and 69 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb624c5...56025d4. Read the comment docs.

@jamesros161 jamesros161 requested a review from bwmarkle February 26, 2020 14:07
*
* @return string
*/
public function is_compressor_type() {
Copy link
Member

Choose a reason for hiding this comment

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

This method should be get_compressor_type or something starting with get_. When it starts with is_, I would expect the return to be a boolean.

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.

[Bug] Unable to restore backups on some GoDaddy accounts
4 participants