Skip to content

Create service to handle what's new functionality#3898

Merged
AndyScherzinger merged 2 commits intomasterfrom
ezaquarii/create-whats-new-service
May 9, 2019
Merged

Create service to handle what's new functionality#3898
AndyScherzinger merged 2 commits intomasterfrom
ezaquarii/create-whats-new-service

Conversation

@ezaquarii
Copy link
Collaborator

@ezaquarii ezaquarii commented Apr 14, 2019

No description provided.

@ezaquarii ezaquarii force-pushed the ezaquarii/create-whats-new-service branch from 227502d to 2f3724d Compare April 14, 2019 20:17
@nextcloud nextcloud deleted a comment Apr 14, 2019
@nextcloud nextcloud deleted a comment Apr 14, 2019
@nextcloud nextcloud deleted a comment Apr 14, 2019
@nextcloud nextcloud deleted a comment Apr 14, 2019
@nextcloud nextcloud deleted a comment Apr 14, 2019
@ezaquarii ezaquarii force-pushed the ezaquarii/create-whats-new-service branch from 2f3724d to 4357747 Compare April 15, 2019 04:34
@codecov
Copy link

codecov bot commented Apr 15, 2019

Codecov Report

Merging #3898 into master will increase coverage by 0.06%.
The diff coverage is 13.54%.

@@             Coverage Diff             @@
##             master   #3898      +/-   ##
===========================================
+ Coverage      6.45%   6.52%   +0.06%     
  Complexity        1       1              
===========================================
  Files           325     328       +3     
  Lines         31247   31301      +54     
  Branches       4479    4481       +2     
===========================================
+ Hits           2018    2042      +24     
- Misses        28931   28963      +32     
+ Partials        298     296       -2
Impacted Files Coverage Δ Complexity Δ
...java/com/nextcloud/client/di/ComponentsModule.java 0% <ø> (ø) 0 <0> (ø) ⬇️
.../java/com/owncloud/android/utils/DisplayUtils.java 6.74% <ø> (+0.02%) 0 <0> (ø) ⬇️
...i/activities/data/files/RemoteFilesRepository.java 100% <ø> (ø) 0 <0> (ø) ⬇️
...m/nextcloud/client/account/UserAccountManager.java 0% <ø> (ø) 0 <0> (ø) ⬇️
...m/owncloud/android/ui/adapter/TemplateAdapter.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ndroid/ui/dialog/ChooseTemplateDialogFragment.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...oud/android/ui/activity/NotificationsActivity.java 0% <0%> (ø) 0 <0> (ø) ⬇️
.../owncloud/android/files/services/FileUploader.java 0.2% <0%> (ø) 0 <0> (ø) ⬇️
...owncloud/android/ui/adapter/OCFileListAdapter.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...com/owncloud/android/ui/activity/BaseActivity.java 1.35% <0%> (-0.02%) 0 <0> (ø)
... and 56 more

@codecov
Copy link

codecov bot commented Apr 15, 2019

Codecov Report

Merging #3898 into master will increase coverage by 0.04%.
The diff coverage is 22.91%.

@@             Coverage Diff             @@
##             master   #3898      +/-   ##
===========================================
+ Coverage      6.57%   6.62%   +0.04%     
  Complexity        1       1              
===========================================
  Files           322     326       +4     
  Lines         30922   30912      -10     
  Branches       4409    4408       -1     
===========================================
+ Hits           2034    2048      +14     
+ Misses        28592   28569      -23     
+ Partials        296     295       -1
Impacted Files Coverage Δ Complexity Δ
...java/com/nextcloud/client/di/ComponentsModule.java 0% <ø> (ø) 0 <0> (ø) ⬇️
.../android/authentication/AuthenticatorActivity.java 1.89% <ø> (ø) 0 <0> (ø) ⬇️
...ndroid/ui/asynctasks/LoadingVersionNumberTask.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...om/nextcloud/client/whatsnew/WhatsNewActivity.java 0% <0%> (ø) 0 <0> (?)
...owncloud/android/ui/activity/FirstRunActivity.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ud/android/providers/DocumentsStorageProvider.java 1.06% <0%> (-0.01%) 0 <0> (ø)
src/main/java/com/owncloud/android/MainApp.java 47.51% <0%> (+1.31%) 0 <0> (ø) ⬇️
...perations/DetectAuthenticationMethodOperation.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...d/authentication/AccountAuthenticatorActivity.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...oud/android/ui/activity/SyncedFoldersActivity.java 0% <0%> (ø) 0 <0> (ø) ⬇️
... and 23 more

@nextcloud nextcloud deleted a comment Apr 15, 2019
@ezaquarii ezaquarii force-pushed the ezaquarii/create-whats-new-service branch from 4357747 to 737feb7 Compare April 15, 2019 14:31
@nextcloud nextcloud deleted a comment Apr 15, 2019
@nextcloud nextcloud deleted a comment Apr 15, 2019
@ezaquarii ezaquarii force-pushed the ezaquarii/create-whats-new-service branch 2 times, most recently from e1c527e to 62e6f87 Compare April 15, 2019 17:14
@nextcloud nextcloud deleted a comment Apr 15, 2019
@ezaquarii ezaquarii force-pushed the ezaquarii/create-whats-new-service branch from 62e6f87 to f6f199e Compare April 15, 2019 20:02
@ezaquarii
Copy link
Collaborator Author

com.owncloud.android.util.EncryptionTestIT is failing - I'm not sure if it's because I downgraded the lib to compile it.

@AndyScherzinger
Copy link
Member

Latest master should work again 🤞

@ezaquarii ezaquarii force-pushed the ezaquarii/create-whats-new-service branch from f6f199e to 239a79a Compare April 16, 2019 14:41
@nextcloud nextcloud deleted a comment Apr 16, 2019
@nextcloud nextcloud deleted a comment Apr 16, 2019
@ezaquarii ezaquarii force-pushed the ezaquarii/create-whats-new-service branch from 239a79a to 76681a7 Compare April 16, 2019 18:40
@nextcloud nextcloud deleted a comment Apr 16, 2019
@nextcloud nextcloud deleted a comment Apr 16, 2019
@nextcloud nextcloud deleted a comment Apr 16, 2019
@nextcloud nextcloud deleted a comment Apr 16, 2019
@ezaquarii ezaquarii force-pushed the ezaquarii/create-whats-new-service branch from 76681a7 to 5c803cf Compare April 16, 2019 18:56
@nextcloud nextcloud deleted a comment Apr 16, 2019
@nextcloud nextcloud deleted a comment Apr 17, 2019
@nextcloud nextcloud deleted a comment Apr 17, 2019
@ezaquarii ezaquarii force-pushed the ezaquarii/create-whats-new-service branch from 2f17af8 to c10f79e Compare April 17, 2019 21:12
@nextcloud nextcloud deleted a comment Apr 17, 2019
@nextcloud nextcloud deleted a comment Apr 17, 2019
@nextcloud nextcloud deleted a comment Apr 17, 2019
@nextcloud nextcloud deleted a comment Apr 17, 2019
@nextcloud nextcloud deleted a comment Apr 17, 2019
@nextcloud nextcloud deleted a comment Apr 17, 2019
@ezaquarii ezaquarii force-pushed the ezaquarii/create-whats-new-service branch from c10f79e to 17e157b Compare April 17, 2019 21:27
@nextcloud nextcloud deleted a comment Apr 17, 2019
@ezaquarii
Copy link
Collaborator Author

> Task :spotbugsGplayDebug FAILED
1 actionable task: 1 executed
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':spotbugsGplayDebug'.
> A failure occurred while executing com.github.spotbugs.internal.spotbugs.SpotBugsRunner
> SpotBugs rule violations were found. See the report at: file:///drone/src/build/reports/spotbugs/spotbugs.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 18s
found warnings: 429
previous warnings: 429
SUCCESS: count stayed the same
Branch: ezaquarii/create-whats-new-service
New lint results at https://www.kaminsky.me/nc-dev/android-lint/8891.html
New findbugs results at https://www.kaminsky.me/nc-dev/android-findbugs/8891.html
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/v3"
}
lint.html file is missing! 

I'm not sure if there is actually anything wrong with it. @tobiasKaminsky can you pls take a look?

@tobiasKaminsky
Copy link
Member

lint.html file is missing!

This means that lint did not run (completely), which is compiles all classes needed by spotBugs.
Having a look into the logs shows

The message received from the daemon indicates that the daemon has disappeared.

which means that somehow build process died.
In this we simply retry it.

Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

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

Looks good to me code-wise. I'm only reviewing it via phone atm, so waiting for @tobiasKaminsky's review and approval.

@ezaquarii
Copy link
Collaborator Author

@tobiasKaminsky @AndyScherzinger anything to do here? It's blocking my other work currently. ;)

@AndyScherzinger
Copy link
Member

@ezaquarii fine with me 👍
I am just waiting for @tobiasKaminsky's review/approval/merge 😃

@AndyScherzinger
Copy link
Member

@ezaquarii any reason for closing? Unfortunately still waiting for @tobiasKaminsky's review 😣

@ezaquarii
Copy link
Collaborator Author

WhatsNewActivity has been removed recently, so I think this refactoring is obsolete now.

@ezaquarii
Copy link
Collaborator Author

I keep the branch around to salvage remaining pieces of logic that could be still applicable elsewhere.

@AndyScherzinger
Copy link
Member

I think the activity should still be there but won't be called since we haven't had any new features worth propagating this way in the near past but might have in the future again.
Tobias knows best.

@ezaquarii
Copy link
Collaborator Author

Youp, I looked at this code once again and you are right. I'll rebase.

@AndyScherzinger
Copy link
Member

needs another rebase due to the changed spotbugs score which is due to the latest findbugs lib update: #3955

@AndyScherzinger
Copy link
Member

pinging @tobiasKaminsky for review/merge :) Looks good from my pov. 👍

@nextcloud-android-bot
Copy link
Collaborator

Codacy

277

Lint

TypemasterPR
Warnings5959
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings25
Correctness Warnings79
Internationalization Warnings12
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings174
Security Warnings47
Dodgy code Warnings141
Total491

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings25
Correctness Warnings81
Internationalization Warnings15
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings175
Security Warnings47
Dodgy code Warnings141
Total497

ezaquarii and others added 2 commits May 9, 2019 14:43
Signed-off-by: Chris Narkiewicz <hello@ezaquarii.com>
… [skip ci]

Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
@tobiasKaminsky
Copy link
Member

I rebased it to latest master and tested it.
Works as expected.

Thanks again @ezaquarii for this great PR 🎉

@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot
Copy link
Collaborator

Codacy

278

Lint

TypemasterPR
Warnings5858
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings25
Correctness Warnings79
Internationalization Warnings12
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings174
Security Warnings47
Dodgy code Warnings141
Total491

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings25
Correctness Warnings81
Internationalization Warnings15
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings175
Security Warnings47
Dodgy code Warnings141
Total497

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.

4 participants