-
Notifications
You must be signed in to change notification settings - Fork 890
Add tag support in sync process #6400
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
Open
Runtemund
wants to merge
38
commits into
nextcloud:master
Choose a base branch
from
Runtemund:addtagsupportmac
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
db2f260
Initial implementation for tac support on macOS
7ba3fcb
Added xattr support in linux
e4befd7
Fix(l10n): Update translations from Transifex
nextcloud-bot 991c9c5
Fix(l10n): Update translations from Transifex
nextcloud-bot b213514
wait longer to get the contextual menu entries: may be necessary
mgallien df11c0f
fix(i18n): uppercase ID
rakekniven 886d97b
fix(i18n): Changed spelling of "public key"
rakekniven dcac579
chore: update workflows from templates
skjnldsv bde5af9
Build(deps): Bump codecov/codecov-action from 3 to 4
dependabot[bot] 2720921
suppress deprecated warnings from openssl
mgallien 25a7bf1
Run swift-format on swift code
claucambra 88d83e3
Add .swift-format.json
claucambra 096f560
Clean up file provider extension property declarations and init
claucambra f451958
Cllean up function and method calls in File Provider Extension
claucambra c115c39
Fix(l10n): Update translations from Transifex
nextcloud-bot a81e818
Modernize networkReplyErrorString by using const auto.
camilasan b947b8a
Modernize extractErrorMessage and AbstractNetworkJob::errorStringPars…
camilasan f09cef7
Update 'no connection' error text to a more user friendly message.
camilasan 05a5c2b
Show systray error message when there is a network error.
camilasan d9cd1a4
Fix(l10n): Update translations from Transifex
nextcloud-bot aecc92c
Do not create systray notification if there are no errors.
camilasan 6087806
Fix(l10n): Update translations from Transifex
nextcloud-bot 42c8d74
Fix(l10n): Update translations from Transifex
nextcloud-bot a370f4b
Fix(l10n): Update translations from Transifex
nextcloud-bot f3090e6
Fix(l10n): Update translations from Transifex
nextcloud-bot 8ae927a
docs(conffile) Update chunk sizes to match v2 chunking PR
joshtrichards 430bb58
Properly report Undefined sync status when multiple folders syncing
claucambra d3d1ad7
Use auto and const auto where possible in trayOverallStatus
claucambra 001d773
Use bools rather than unnecessary ints in folderman trayoverallstatus
claucambra c7998a8
Do an early break of folder state check loop when errors seen
claucambra c0cc3b2
fix binding loop with palette assignments
mgallien 1ea0fc8
ensure role hideDownload from ShareModel has a boolean default value
mgallien 72c2d03
fix QML warnings about accessing undefined parent property
mgallien 638d32e
fix more issues from qml in share dialog
mgallien 666a751
Fix(l10n): Update translations from Transifex
nextcloud-bot 8abe081
Do not upload modified PDF file while it is open in Kofax PowerPDF on…
allexzander 32021e0
Improved cliend side sync process for tags. Some code clean-up.
f883c34
Merge branch 'master' into addtagsupportmac
Runtemund File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -558,7 +558,6 @@ void Folder::slotWatchedPathChanged(const QString &path, ChangeReason reason) | |||||
| qCDebug(lcFolder) << "Changed path is not contained in folder, ignoring:" << path; | ||||||
| return; | ||||||
| } | ||||||
|
|
||||||
| auto relativePath = path.midRef(this->path().size()); | ||||||
|
|
||||||
| if (pathIsIgnored(path)) { | ||||||
|
|
@@ -610,7 +609,7 @@ void Folder::slotWatchedPathChanged(const QString &path, ChangeReason reason) | |||||
| // an attribute change (pin state) that caused the notification | ||||||
| bool spurious = false; | ||||||
| if (record.isValid() | ||||||
| && !FileSystem::fileChanged(path, record._fileSize, record._modtime)) { | ||||||
| && !FileSystem::fileChanged(path, record._fileSize, record._modtime,record._tagList)) { | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| spurious = true; | ||||||
|
|
||||||
| if (auto pinState = _vfs->pinState(relativePath.toString())) { | ||||||
|
|
@@ -628,7 +627,6 @@ void Folder::slotWatchedPathChanged(const QString &path, ChangeReason reason) | |||||
| } | ||||||
| } | ||||||
| warnOnNewExcludedItem(record, relativePath); | ||||||
|
|
||||||
| emit watchedFileChangedExternally(path); | ||||||
|
|
||||||
| // Also schedule this folder for a sync, but only after some delay: | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -17,6 +17,7 @@ | |||||||
| #include "common/filesystembase.h" | ||||||||
| #include "common/syncjournaldb.h" | ||||||||
| #include "filesystem.h" | ||||||||
| #include "filetags.h" | ||||||||
| #include "syncfileitem.h" | ||||||||
| #include "progressdispatcher.h" | ||||||||
| #include <QDebug> | ||||||||
|
|
@@ -482,7 +483,8 @@ void ProcessDirectoryJob::processFile(PathTuple path, | |||||||
| << " | e2ee: " << dbEntry.isE2eEncrypted() << "/" << serverEntry.isE2eEncrypted() | ||||||||
| << " | e2eeMangledName: " << dbEntry.e2eMangledName() << "/" << serverEntry.e2eMangledName | ||||||||
| << " | file lock: " << localFileIsLocked << "//" << serverFileIsLocked | ||||||||
| << " | metadata missing: /" << localEntry.isMetadataMissing << '/'; | ||||||||
| << " | metadata missing: /" << localEntry.isMetadataMissing << '/' | ||||||||
| << " | tagList: " << dbEntry._tagList << "//" << localEntry.tagList << "//" << serverEntry.tagList; | ||||||||
|
|
||||||||
| if (localEntry.isValid() | ||||||||
| && !serverEntry.isValid() | ||||||||
|
|
@@ -491,6 +493,19 @@ void ProcessDirectoryJob::processFile(PathTuple path, | |||||||
| qCWarning(lcDisco) << "File" << path._original << "was modified before the last sync run and is not in the sync journal and server"; | ||||||||
| } | ||||||||
|
|
||||||||
| if(localEntry.isValid() | ||||||||
| && dbEntry.isValid()) { | ||||||||
|
Comment on lines
+496
to
+497
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
|
||||||||
| // Tag synchronization | ||||||||
| FileTagManager::syncTags(_discoveryData->_account, | ||||||||
| _discoveryData->_statedb, | ||||||||
| _discoveryData->_localDir, | ||||||||
| path._original, | ||||||||
| localEntry, | ||||||||
| serverEntry, | ||||||||
| dbEntry); | ||||||||
| } | ||||||||
|
|
||||||||
| if (_discoveryData->isRenamed(path._original)) { | ||||||||
| qCDebug(lcDisco) << "Ignoring renamed"; | ||||||||
| return; // Ignore this. | ||||||||
|
|
@@ -656,6 +671,7 @@ void ProcessDirectoryJob::processFileAnalyzeRemoteInfo(const SyncFileItemPtr &it | |||||||
| item->_lockEditorApp = serverEntry.lockEditorApp; | ||||||||
| item->_lockTime = serverEntry.lockTime; | ||||||||
| item->_lockTimeout = serverEntry.lockTimeout; | ||||||||
| item->_tagList = serverEntry.tagList; | ||||||||
|
|
||||||||
| qCDebug(lcDisco()) << "item lock for:" << item->_file | ||||||||
| << item->_locked | ||||||||
|
|
||||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: the formatting of the code here does not match the rest of the code, please use 4-space indentation and leave spaces in between operators, as well as if statements and their parenthesis :)