Skip to content

Killing the app leaves uploads in an inconsistent state #1500

Closed

Description

@davivel

Steps to reproduce

  1. Upload some files
  2. Kill the app
  3. Open again the app and go to uploads view

Current behaviour

The files are in "Current" list forever

Expected behaviour

The files are uploaded and go to Uploaded list.

Environment

Tested with: Nexus5 v5.0.1

Activity

  1. davivel commented on Mar 9, 2016

    @davivel
    ContributorAuthor

    Now solved in #1493, ready to test @jesmrec

  2. davivel commented on Mar 16, 2016

    @davivel
    ContributorAuthor

    For the moment automatic retries are only for instant uploads, when WiFi is recovered. We explicitly disabled that retry to limit the scope of this user story / pull request. So, that part is intended.

    The message "UNKNOWN" seems confusing, not just for you. so we'll change it.

    Any proposal? "App was killed", "Unexpected interruption", "WTF" ?

  3. ghost closed this as completedon Mar 16, 2016
  4. ghost reopened this on Mar 16, 2016
  5. AndyScherzinger commented on Mar 16, 2016

    @AndyScherzinger
    Contributor

    app was terminated

  6. davivel commented on Mar 17, 2016

    @davivel
    ContributorAuthor

    OK, let's update with one of those. Probably @AndyScherzinger's proposal is more formal.

  7. malkomich commented on Mar 18, 2016

    @malkomich
    Contributor

    I have set just "Error uploading" as the error message because a more specific message would not be meaningful for a common user.
    Also I have updated the failed section label in order to make clear the action for manually retry, while currently all failed uploads can be retried.

  8. davivel commented on Mar 18, 2016

    @davivel
    ContributorAuthor

    OK. Let's add an specific value for app killed to UploadResult, and a message associated to it - "App was terminated". The value needs to be set in the database in the method UploadsStorageManager.failInProgressUploads instead of UploadResult.UNKNOWN.

    Then, let's rollback the message for UNKOWN result to "Unknown error".

    Let's keep the additional (TAP TO RETRY) in the header and see what others think about it.

  9. nasli commented on Mar 18, 2016

    @nasli

    Ok, the new message shown: "App was terminated" 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions