Skip to content

improve unified share fetch - #17770

Open
alperozturk96 wants to merge 2 commits into
masterfrom
improve-unified-share-fetch
Open

alperozturk96 wants to merge 2 commits into
masterfrom
improve-unified-share-fetch

Conversation

@alperozturk96

@alperozturk96 alperozturk96 commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator
  • Adds missing call
  • Improves performance
  • Adds cache expiration time

@alperozturk96

Copy link
Copy Markdown
Collaborator Author

/backport to stable-35.0.x

@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit cbe16a2
Version 17770
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 20.93023% with 34 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...oud/android/ui/adapter/OCShareToOCFileConverter.kt 0.00% 15 Missing ⚠️
...ncloud/android/ui/fragment/OCFileListSearchTask.kt 0.00% 14 Missing ⚠️
...a/com/nextcloud/utils/share/UnifiedShareSharees.kt 64.28% 2 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96
alperozturk96 force-pushed the improve-unified-share-fetch branch from 46bba3f to fa42242 Compare October 5, 2026 08:04

private suspend fun ShareAvatarRepository.fetchSharees(file: OCFile) {
file.sharees = fetchShareAvatars(file.localId.toString())?.toAvatarSharees().orEmpty()
val shares = fetchShareAvatars(file.localId.toString()) ?: return

@alperozturk96 alperozturk96 Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Should just return not with empty thus we don't override via false data

}

if (newShares.isEmpty()) {
UnifiedShareSharees.fill(user, cachedFiles)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Adds missing call

…ground

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice3030
Correctness5454
Dodgy code178178
Experimental11
Malicious code vulnerability22
Multithreaded correctness2626
Performance3535
Security1616
Total342342

This branch has not been deployed

No deployments
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.

1 participant