X Tutup
Skip to content

Allow removing shares which are invalid due to missing source fileid#38152

Merged
jvillafanez merged 3 commits intomasterfrom
invalid_shares_cleanup
Feb 16, 2021
Merged

Allow removing shares which are invalid due to missing source fileid#38152
jvillafanez merged 3 commits intomasterfrom
invalid_shares_cleanup

Conversation

@jvillafanez
Copy link
Member

@jvillafanez jvillafanez commented Nov 27, 2020

Description

Related Issue

Related to https://github.com/owncloud/windows_network_drive/pull/310

Motivation and Context

clean up data that won't be accessible

How Has This Been Tested?

Checked along with https://github.com/owncloud/windows_network_drive/pull/310

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@update-docs
Copy link

update-docs bot commented Nov 27, 2020

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.

@jvillafanez jvillafanez force-pushed the invalid_shares_cleanup branch from dfb0378 to 4a3b78a Compare November 30, 2020 09:48
@jvillafanez
Copy link
Member Author

Code-wise this is ready, but we might need to adjust the "since" tags. I'm assuming this will be for 10.7

@mmattel
Copy link
Contributor

mmattel commented Dec 12, 2020

@jvillafanez any progress on that?
Could you add a changelog pls?

@jvillafanez
Copy link
Member Author

Since this PR has API changes, I'm waiting for the official 10.7 alpha. Master is still with 10.6

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
No Duplication information No Duplication information

@jvillafanez
Copy link
Member Author

This is currently frozen due to API changes. Waiting for OC 10.7 in order to resume the work in this area. There is a 10.6.1 version planned I think.
@micbar FYI

@jvillafanez jvillafanez force-pushed the invalid_shares_cleanup branch from da6663a to d427c22 Compare February 4, 2021 10:22
@phil-davis
Copy link
Contributor

There is a 10.6.1 version planned I think.

Note: there is no 10.6.1 planned. Next version should be 10.7.0

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 4, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
No Duplication information No Duplication information

@jvillafanez jvillafanez marked this pull request as ready for review February 4, 2021 11:40
@VicDeo
Copy link
Member

VicDeo commented Feb 9, 2021

@jvillafanez looks good in general.
Is it possible not to duplicate the code for the core federatedfilesharing app? As I see the only difference here is a set of share types.

@jvillafanez
Copy link
Member Author

Is it possible not to duplicate the code for the core federatedfilesharing app? As I see the only difference here is a set of share types.

The problem is that the actual action depends on each provider. The manager just forwards the request to all the providers. In this context, we could expect that each provider has its own way of storing the information, and its own way to delete it. The fact that both providers use the same DB table could be considered as a bad coincidence.

I agree we should avoid that duplication, but I think we'd also need to refactor all the related operations and provide a common way for the providers to store the information. For now, as said, it seems the storing part is completely delegated to the providers.

@jvillafanez jvillafanez merged commit d6df6b3 into master Feb 16, 2021
@delete-merged-branch delete-merged-branch bot deleted the invalid_shares_cleanup branch February 16, 2021 11:39
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.

5 participants

X Tutup