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

Feature/delete #91

Merged
merged 3 commits into from
Aug 9, 2018
Merged

Feature/delete #91

merged 3 commits into from
Aug 9, 2018

Conversation

pablocarmu
Copy link
Contributor

@pablocarmu pablocarmu commented Jun 27, 2018

Description

This pull request makes the app able to remove files and folders.
Also includes the first implementation of multi-selection which need further discussion.

Related Issue

#79
#22

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

  • (1) With no connection, deleting a file makes the app stucked [FIXED]

@CLAassistant
Copy link

CLAassistant commented Jun 27, 2018

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ pablocarmu
❌ felix-schwarz
You have signed the CLA already but the status is still pending? Let us recheck it.

@pablocarmu pablocarmu self-assigned this Jun 27, 2018
@pablocarmu pablocarmu requested review from felix-schwarz and jesmrec and removed request for felix-schwarz June 27, 2018 12:45
@pablocarmu pablocarmu changed the title Feature/delete Feature/delete WIP Jun 27, 2018
@pablocarmu pablocarmu changed the title Feature/delete WIP Feature/delete Jul 9, 2018
@jesmrec
Copy link
Contributor

jesmrec commented Jul 9, 2018

(1)

Steps:

  1. Switch connection off
  2. Delete a file

Current: A spinner with Deleting appears in a loop. By killing the app, the error appears
Expected: App responses with some kind of error about No connection

iPhone 6S Plus v11

- Created a swipe gesture for delete files and folders.
- Created new convenience init for UIAlertController to be able to create delete-cancel alert controllers more easily.
@codecov
Copy link

codecov bot commented Aug 3, 2018

Codecov Report

Merging #91 into master will decrease coverage by 0.04%.
The diff coverage is 0.99%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #91      +/-   ##
==========================================
- Coverage   23.66%   23.61%   -0.05%     
==========================================
  Files          57       57              
  Lines        4880     4814      -66     
==========================================
- Hits         1155     1137      -18     
+ Misses       3725     3677      -48
Impacted Files Coverage Δ
...tensions/UIAlertController+OCConnectionIssue.swift 0% <0%> (ø) ⬆️
ownCloud/Client/ClientQueryViewController.swift 0% <0%> (ø) ⬆️
ownCloud/Tools/Log.swift 0% <0%> (ø) ⬆️
ownCloud/Theming/TVG/TVGImage.swift 71.69% <100%> (-3.51%) ⬇️

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 44175dc...019ec35. Read the comment docs.

@felix-schwarz felix-schwarz self-requested a review August 3, 2018 08:22
@jesmrec
Copy link
Contributor

jesmrec commented Aug 7, 2018

Delete feature works properly from my side in online mode. For offline mode issues, check:

owncloud/ios-sdk#25 (comment)

…ummarizing progress

- Change UIAlertController category so it is reusable by adding parameters for cancel and destructive labels
Copy link
Contributor

@felix-schwarz felix-schwarz left a comment

Choose a reason for hiding this comment

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

I made a couple of minor changes:

  • progress feedback uses the Progress object returned by OCCore (which currently doesn't provide information, but will in the future)
  • Change UIAlertController category so it is reusable by adding parameters for cancel and destructive labels (it was previously hardcoded to "Cancel"/"Delete")

@jesmrec
Copy link
Contributor

jesmrec commented Aug 9, 2018

All approved, then merge and close. Great job!

@jesmrec jesmrec merged commit 584be00 into master Aug 9, 2018
@jesmrec jesmrec deleted the feature/delete branch August 9, 2018 10:56
@jesmrec jesmrec mentioned this pull request Jan 22, 2019
45 tasks
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.

4 participants