Skip to content

fix(connectivity-service): too many attempt#17250

Open
alperozturk96 wants to merge 9 commits into
masterfrom
fix/connectivity-service-too-many-request
Open

fix(connectivity-service): too many attempt#17250
alperozturk96 wants to merge 9 commits into
masterfrom
fix/connectivity-service-too-many-request

Conversation

@alperozturk96

Copy link
Copy Markdown
Collaborator

No description provided.

@alperozturk96 alperozturk96 linked an issue Jun 24, 2026 that may be closed by this pull request
4 tasks
@alperozturk96 alperozturk96 added this to the Nextcloud App 34.1.0 milestone Jul 1, 2026
Comment thread app/src/main/java/com/nextcloud/client/network/NetworkModule.java Outdated
@alperozturk96 alperozturk96 force-pushed the fix/connectivity-service-too-many-request branch 2 times, most recently from 712e70a to 39a92a3 Compare July 2, 2026 10:43
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 force-pushed the fix/connectivity-service-too-many-request branch from 5fa1641 to 16433a2 Compare July 2, 2026 10:58
@nextcloud nextcloud deleted a comment from github-actions Bot Jul 2, 2026
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot couldn't run its full agentic review because no GitHub Actions runner was available. Make sure your repository has a runner available to run Copilot's review, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.

Refactors network DI and connectivity caching to reduce repeated connectivity-service construction/attempts, likely by tightening singleton scopes and making the cache concurrent-safe.

Changes:

  • Replaced the Java NetworkModule with a Kotlin Dagger module and scoped ConnectivityService provisioning.
  • Refactored WalledCheckCache to use ConcurrentHashMap and an internal clock implementation.
  • Removed a construction-time debug log from ConnectivityServiceImpl.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
app/src/main/java/com/nextcloud/client/network/WalledCheckCache.kt Switches cache storage/concurrency approach and changes how time is sourced.
app/src/main/java/com/nextcloud/client/network/NetworkModule.kt Adds Kotlin Dagger module and providers for connectivity + client factory.
app/src/main/java/com/nextcloud/client/network/NetworkModule.java Removes the previous Java-based Dagger module.
app/src/main/java/com/nextcloud/client/network/ConnectivityServiceImpl.kt Removes a debug log during service initialization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/src/main/java/com/nextcloud/client/network/WalledCheckCache.kt
Comment thread app/src/main/java/com/nextcloud/client/network/WalledCheckCache.kt
Comment thread app/src/main/java/com/nextcloud/client/network/WalledCheckCache.kt
Comment thread app/src/main/java/com/nextcloud/client/network/WalledCheckCache.kt
Comment on lines +19 to +32
@Provides
@Singleton
fun connectivityService(
context: Context,
accountManager: UserAccountManager,
clientFactory: ClientFactory,
walledCheckCache: WalledCheckCache
): ConnectivityService = ConnectivityServiceImpl(
context,
accountManager,
clientFactory,
{ GetMethod(it, false) },
walledCheckCache
)
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

APK file: https://github.com/nextcloud/android/actions/runs/28585174427/artifacts/8037646746
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

Signed-off-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

master-IT test failed, but no output was generated. Maybe a preliminary stage failed.

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.

Crash when swiping trough images.

3 participants