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

Handle conflicts when we move a file #1695

Merged
merged 18 commits into from
May 29, 2019
Merged

Handle conflicts when we move a file #1695

merged 18 commits into from
May 29, 2019

Conversation

cedricmessiant
Copy link
Contributor

@cedricmessiant cedricmessiant commented May 21, 2019

Remaining:

  • add unit tests on cancelMove and moveEntries
  • we could have a CozyFile.restore method in cozy-doctypes that just calls the collection's method but do we want this?

Also, I opened a discussion on trello about error handling

@cedricmessiant cedricmessiant changed the title WIP: Handle conflicts when we move a file Handle conflicts when we move a file May 28, 2019
@cedricmessiant cedricmessiant marked this pull request as ready for review May 28, 2019 15:29
@cedricmessiant
Copy link
Contributor Author

@cozy-bot
Copy link

Visual Review - Please review screenshots, then restart build.

  • ❌ drive : Search : https://visualreview.cozycloud.cc/#/2/5/609
  • Copy link
    Contributor

    @y-lohse y-lohse left a comment

    Choose a reason for hiding this comment

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

    Nit, but I think we want to use more HOC to inject context variables as props, ie translate() and withClient(). Other than that LGTM 👍

    src/drive/web/modules/move/MoveModal.jsx Outdated Show resolved Hide resolved
    @cozy-bot
    Copy link

    🎁 Click here to download the latest Android APK

    @cozy-bot
    Copy link

    Visual Review - Please review screenshots, then restart build.

  • ❌ drive : Search : https://visualreview.cozycloud.cc/#/2/5/695
  • @cozy-bot
    Copy link

    Visual Review - Please review screenshots, then restart build.

  • ❌ drive : Search : https://visualreview.cozycloud.cc/#/2/5/752
  • Copy link
    Contributor

    @Crash-- Crash-- left a comment

    Choose a reason for hiding this comment

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

    LGTM

    @cozy-bot
    Copy link

    🎁 Click here to download the latest Android APK

    @cozy-bot
    Copy link

    🎁 Click here to download the latest Android APK

    @cozy-bot
    Copy link

    Visual Review - Please review screenshots, then restart build.

  • ❌ drive : Search : https://visualreview.cozycloud.cc/#/2/5/797
  • @cedricmessiant cedricmessiant merged commit f6e0075 into master May 29, 2019
    @cedricmessiant cedricmessiant deleted the move_conflict branch May 29, 2019 14:11
    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.

    None yet

    4 participants