-
Notifications
You must be signed in to change notification settings - Fork 992
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
EP-513-4: Remove Datalake Events And Worker #1236
Conversation
…starter/android-oss into sunday-ep-523-remove-datalake-evens
This reverts commit 77e2fa2. # Conflicts: # app/src/main/java/com/kickstarter/libs/KoalaContext.kt
…starter/android-oss into sunday-ep-523-remove-datalake-evens
…starter/android-oss into sunday-ep-523-remove-datalake-evens
…ens' into sunday-ep-523-remove-datalake-evens # Conflicts: # app/src/main/java/com/kickstarter/libs/AnalyticEvents.kt # app/src/main/java/com/kickstarter/libs/KoalaContext.kt # app/src/main/java/com/kickstarter/ui/activities/ProfileActivity.kt # app/src/main/java/com/kickstarter/viewmodels/MessageThreadsViewModel.java # app/src/test/java/com/kickstarter/viewmodels/MessageThreadsViewModelTest.java
…datalake-evens # Conflicts: # app/src/main/java/com/kickstarter/ApplicationModule.java
Codecov Report
@@ Coverage Diff @@
## master #1236 +/- ##
============================================
+ Coverage 74.71% 74.83% +0.11%
- Complexity 734 738 +4
============================================
Files 221 221
Lines 6684 6640 -44
Branches 402 402
============================================
- Hits 4994 4969 -25
+ Misses 1557 1538 -19
Partials 133 133
Continue to review full report at Codecov.
|
…starter/android-oss into sunday-ep-523-remove-datalake-evens
…starter/android-oss into sunday-ep-523-remove-datalake-evens
@@ -25,11 +25,11 @@ | |||
private final PublishSubject<ActivityResult> activityResult = PublishSubject.create(); | |||
private final PublishSubject<Bundle> arguments = PublishSubject.create(); | |||
protected final PublishSubject<Boolean> isExpanded = PublishSubject.create(); | |||
protected final AnalyticEvents lake; | |||
protected final AnalyticEvents analyticEvents; |
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.
Thank you for the re-naming 👍
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.
😊😊
@@ -335,15 +339,16 @@ private void displayNotificationFromUpdateActivity(final @NonNull PushNotificati | |||
return taskStackBuilder.getPendingIntent(envelope.signature(), PendingIntent.FLAG_UPDATE_CURRENT); | |||
} | |||
|
|||
private @NonNull PendingIntent messageThreadIntent(final @NonNull PushNotificationEnvelope envelope, | |||
@VisibleForTesting |
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.
👍
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.
Just two small comments left. Apart from that amazing job on this guys @sunday-okpoluaefe @hadia 👏 🎆 🚀
lakeTrackingClient.eventNames.subscribe(lakeTest) | ||
return lakeTrackingClient | ||
} | ||
// private fun lakeTrackingClient(mockCurrentConfig: MockCurrentConfig, experimentsClientType: MockExperimentsClientType): MockTrackingClient { |
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.
Can be removed
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.
👍🏻
import org.junit.Test | ||
|
||
class PushNotificationsTest : KSRobolectricTestCase() { | ||
private val application: Application = ApplicationProvider.getApplicationContext() |
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.
KSRobolectricTestCase
has a protected method application()
to fetch the context Application, take a look at SegmentTest.kt:73
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.
👍🏻
📲 What
Android: Remove Datalake Events And Worker
🤔 Why
🛠 How
Removed LakeTrackingClient from the application
Remove LAKE from the TrackingClientType
Removed KoalaEvent enum and the affecting functions from the app
Removed All unused functions from the AnalyticsEvents class
Removed Any additional references to the DataLake are removed from the app
Removed LakeWorker needs to be removed
Deleted the provider for the Lake worker, and the provider for the retrofit service from the AppModule
Updated Tests to reflect the removed changes
👀 See
Trello, screenshots, external resources?
📋 QA
Instructions for anyone to be able to QA this work.
Story 📖
https://kickstarter.atlassian.net/browse/EP-513
https://kickstarter.atlassian.net/browse/EP-514