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

[full-ci] Restore files: Implement conflict dialog #7635

Merged
merged 39 commits into from
Oct 26, 2022

Conversation

lookacat
Copy link
Contributor

@lookacat lookacat commented Sep 12, 2022

Description

See #1753

Related Issue

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)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added

@update-docs
Copy link

update-docs bot commented Sep 12, 2022

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@lookacat lookacat force-pushed the restore-conflict-dialog branch 2 times, most recently from 37025eb to 4e8b057 Compare September 15, 2022 14:01
@lookacat lookacat marked this pull request as ready for review September 15, 2022 14:31
@ownclouders
Copy link
Contributor

ownclouders commented Sep 16, 2022

Results for oC10Trashbin https://drone.owncloud.com/owncloud/web/28935/31/1

💥 The acceptance tests failed on retry. Please find the screenshots inside ...

webUITrashbinRestore-trashbinRestore_feature-L138.png

webUITrashbinRestore-trashbinRestore_feature-L138.png

webUITrashbinRestore-trashbinRestore_feature-L173.png

webUITrashbinRestore-trashbinRestore_feature-L173.png

@lookacat lookacat changed the title Restore files: Implement conflict dialog [full-ci] Restore files: Implement conflict dialog Sep 16, 2022
@lookacat lookacat force-pushed the restore-conflict-dialog branch from 387863d to 753c521 Compare September 16, 2022 14:15
@kulmann kulmann requested a review from JammingBen September 20, 2022 08:09
Copy link
Contributor

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

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

I'd like to try it, but I always get an error on restoring files: TypeError: Cannot read properties of undefined (reading 'includes') in this line: const overwrite = filesToOverwrite.includes(resource).

@lookacat
Copy link
Contributor Author

sorry that it didnt worked, im confused too as it did work before :O will look into it

@lookacat lookacat requested a review from JammingBen September 20, 2022 10:06
@lookacat lookacat force-pushed the restore-conflict-dialog branch from 2cf8658 to f66b469 Compare October 6, 2022 07:42
@lookacat lookacat requested a review from dschmidt October 10, 2022 21:14
@JammingBen JammingBen mentioned this pull request Oct 11, 2022
9 tasks
@JammingBen
Copy link
Contributor

The Replace strategy does not work for me. The file disappears in the trashbin after clicking "Replace", but it re-appears after a page reload. Also, no new version gets created.

#1753 is not fixed by this, right? It still gives me an error.

@lookacat
Copy link
Contributor Author

@JammingBen thats weird, i will look into it. But yes the bug ticket will be fixed by this PR.

@lookacat lookacat force-pushed the restore-conflict-dialog branch from 94e256a to 0219618 Compare October 11, 2022 11:13
Copy link
Member

@dschmidt dschmidt left a comment

Choose a reason for hiding this comment

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

Just a few more or less nitpicky comments

return []
})
}
},
Copy link
Member

Choose a reason for hiding this comment

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

I understand if you don't want to port everything to the defaultComponentMocks, but you could mock the whole clientService like this:

$clientService: mockDeep<ClientService>(),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

doesnt work 😬

Copy link
Contributor

Choose a reason for hiding this comment

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

I doubt that it just doesn't work 👀 any specific reason why it doesn't work?

@lookacat lookacat force-pushed the restore-conflict-dialog branch 3 times, most recently from 247697f to 97465d0 Compare October 20, 2022 09:15
@lookacat lookacat requested review from kulmann and dschmidt October 20, 2022 09:35
@lookacat lookacat force-pushed the restore-conflict-dialog branch 2 times, most recently from 100b8b8 to b754085 Compare October 20, 2022 11:59
@kulmann kulmann force-pushed the restore-conflict-dialog branch from 95049ca to ceaa124 Compare October 25, 2022 09:48
@kulmann kulmann force-pushed the restore-conflict-dialog branch from faaeccc to 27b90dc Compare October 26, 2022 12:23
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

44.2% 44.2% Coverage
0.0% 0.0% Duplication

@kulmann kulmann merged commit 6d0d57d into master Oct 26, 2022
@delete-merged-branch delete-merged-branch bot deleted the restore-conflict-dialog branch October 26, 2022 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants