Commit Graph

60 Commits

Author SHA1 Message Date
dkadrikj 9115a3a20a feat(auth): Add common pass check. 2024-04-25 13:43:25 +02:00
Nicolas Mouchel 49a40b1f15 chore(feature-flag): Group all call to WorkManager in FeatureFlagWorkerManager.
Extract interface from FeatureFlagWorkerManager.
2024-03-27 16:39:09 +00:00
Nicolas Mouchel ba124b184b chore(injection): Modules should be public to allow @TestInstallIn to replace them and avoid hilt to generate a wrapper.
Modules with bindings can be interfaces.
2024-03-26 17:42:06 +00:00
Neil Marietta 9780725d1a fix(feature-flag): Removed FeatureFlag metrics (except FeatureFlagAwaitTotal). 2024-03-22 11:43:08 +01:00
Neil Marietta 287fb866d6 feat(user-settings): Added PasswordManagement Account Recovery state handling. 2024-03-14 12:13:48 +01:00
Marcin Simonides 63e7055f0c feat(feature-flags): Allow custom context for flags.
A FeatureFlagContextProvider is added that can be used by clients to
provide custom context properties when fetching feature flags.
2024-03-05 08:00:22 +00:00
Neil Marietta c517bba3ee chore: Upgraded Kotlin to 1.9.22 (and needed dependencies). 2024-02-28 18:09:18 +00:00
Neil Marietta b4136827e5 feat(observability): Added Feature Flag Metrics. 2024-02-08 11:41:11 +01:00
Mateusz Armatys 62b103573b feat(auth): Wait for the feature flag before picking which Welcome screen should be displayed. 2024-02-01 12:16:56 +00:00
Neil Marietta 82be3754e6 feat: Added Custom Tabs support for LoginSso Activity. 2024-01-29 14:36:16 +00:00
Mateusz Armatys bf19f893c9 feat(feature-flag): Add generic class for checking local and remote feature flag values. 2024-01-19 10:35:41 +01:00
Mateusz Armatys cde18282f2 build(coverage): Set up min and max bounds for coverage. 2023-12-19 19:45:50 +01:00
Neil Marietta 9410142205 fix(feature-flag): Wait Unleash FeatureFlags initialization if not completed. 2023-12-08 16:44:14 +01:00
Neil Marietta fa6784aef3 feat(feature-flag): Improved Unleash FeatureFlag refresh strategy. 2023-10-30 16:07:32 +00:00
Neil Marietta db9bb1f3b7 feat(feature-flag): Added Unleash FeatureFlag persistence. 2023-10-20 19:46:05 +02:00
Neil Marietta f294a0e5fb feat(feature-flag): Added FeatureFlagRefreshStarter to use with FeatureFlagInitializer. 2023-08-24 13:54:20 +02:00
Neil Marietta aeb280ff04 feat(feature-flag): Added Unleash Toggles. 2023-07-27 13:53:36 +02:00
Neil Marietta 49b0bd8eb5 refactor: Moved LogTag to domain layer. 2023-07-25 13:13:21 +02:00
Neil Marietta ebfa017f37 chore!: Upgraded AGP to 8.0.2 (+Java 17). 2023-07-04 16:22:38 +02:00
Neil Marietta 144ff648bd chore: Upgraded Kotlin to 1.8.10 (+Dagger 2.46.1, +Compose to 1.4.3, +AppCompat 1.6.1, +Lifecycle 2.6.1, +Robolectric 4.10.3). 2023-07-04 15:13:07 +02:00
Mateusz Armatys 3c4499d45f feat(account-recovery): Cancelling account recovery attempt. 2023-06-15 16:34:31 +00:00
Mateusz Armatys 1b0ca7454a build: Add minimum branch and line coverages for existing modules. 2023-05-04 11:07:23 +00:00
Mateusz Armatys 02a29d3160 build: Disable coverage in CoreExample and the top-level aggregating modules. 2023-05-04 11:07:23 +00:00
Marino Meneghel 400f3b8eda fix(feature-flags): Fully disable in memory caching for feature flags
MAILAND-3071
2023-04-18 12:33:34 +02:00
Marino Meneghel 8c5c911425 fix(feature-flags): Clear store cache when updating feature flag value.
This ensures when the value of a feature flag is updated and then
immediately queried by the client, the updated value is returned over
the previous, outdated one that store keeps in its memory cache.

MAILAND-3071
2023-04-17 12:47:04 +02:00
Marino Meneghel 3f20e41b36 feat(feature-flag): Update value defaults to "global" user id when null.
MAILANDR-3071
2023-04-11 16:04:05 +00:00
Marino Meneghel 9df3c14cd0 feat(feature-flag): Rollback feature flag only changes the value.
MAILAND-3071
2023-04-11 16:04:05 +00:00
Marino Meneghel b7d51ff36d feat(feature-flag): Rollback local feature flag value when update request fails.
MAILAND-3071
2023-04-11 16:04:05 +00:00
Marino Meneghel 19689c42dd fix(feature-flag): Move worker related op to remote data source.
- Update api definition.

MAILAND-3071
2023-04-11 16:04:05 +00:00
Marino Meneghel 0749a0a381 feat(feature-flag): Feature flag manager can update feature flag values.
MAILAND-3071
2023-04-11 16:04:05 +00:00
Mateusz Armatys b1c4e41746 test: Migrate tests to the new coroutines-test APIs. 2022-12-05 13:33:57 +00:00
Mateusz Armatys ae89fc06cf refactor: Add explicit coroutine scope for repositories for easier testing. 2022-12-05 13:33:57 +00:00
Mateusz Armatys c205577b45 test(feature-flag): Temporarily ignore tests which sometimes fails on CI. 2022-10-07 18:21:42 +02:00
Mateusz Armatys cbb3ae8c22 test(feature-flag): Temporarily ignore a test which sometimes fails on CI. 2022-10-07 17:20:32 +02:00
Marino Meneghel 34a6c9219b fix: Pass test dispatcher to runTest method.
This is to solve test failures which started happening after updating
AGP to 7.1.3 (error `Detected use of different schedulers..`)
2022-09-28 17:50:17 +02:00
Neil Marietta f2ad0cdca9 fix(feature-flag): Fetch unknown local FeatureId, and remember unknown remote FeatureId. 2022-07-29 11:42:33 +02:00
Mateusz Armatys c5071d7815 build: Optimize dependencies. 2022-07-28 16:07:58 +02:00
Mateusz Armatys 9730dc01a6 test: Use `TestDispatcherProvider` when creating `ApiProvider`. 2022-07-27 18:41:21 +02:00
Mateusz Armatys 454bf42593 style: Rename classes with `@dagger.Module` annotation to `Core...Module`. 2022-07-25 19:55:43 +02:00
Mateusz Armatys 749b6b488c Revert "Create Dagger module for all Core modules"
This reverts commit 94ca12a41e.
2022-07-25 19:53:13 +02:00
Jorge Martin 94ca12a41e Create Dagger module for all Core modules 2022-07-25 16:47:31 +00:00
Neil Marietta e18d959b1e feat(feature-flag): Added Feature Flag not found info log. 2022-07-21 10:52:36 +00:00
Neil Marietta d8159c576a refactor(feature-flag): Refactored Feature Flag modules.
Fixed issues:
- `FeatureFlagRepositoryImpl get` doesn't return a nullable `FeatureFlag`.
- Fetching for a different userId will discard others. `FeatureFlagEntity` should have `userId` as primaryKey.
- Missing Local/Remote DataSource for consistency.
- Add `FeatureFlagManagerImpl` prefetch `Worker`.
2022-07-21 10:52:36 +00:00
dkadrikj d47d284556 Update payments flag name.
Fixes
2022-02-25 16:58:59 +01:00
dkadrikj d6e1999cbe Refactor feature flag module.
Depending on the payments feature flag update the plan&payments UI modules.
2022-02-25 16:58:59 +01:00
Marino Meneghel b75e871537 Solve detekt warnings and add kdoc to FeatureFlagManager
Remove ignored tests as no solution was found to make them run without
involving robolectric and a mock db

MAILANDR-48
2022-02-16 15:38:27 +01:00
Marino Meneghel 507f6c6e2f Update api dump 2022-02-16 15:36:22 +01:00
Marino Meneghel 5b15ebc26d Enable strict api mode for feature flag's data module
In order to avoid exposing all of the classes in data module as public,
the injection was changed to use @Binds.
Some classes such as the Database, Dao and Entity currently has to stay
public in order to be declared in the client's DBs

MAILANDR-48
2022-02-16 15:36:22 +01:00
Marino Meneghel 289b8ab4c3 Add FeatureFlagManager as an abstraction layer for clients
This makes the API more flexible to be changed later on without
impacting clients

MAILANDR-48
2022-02-16 15:36:22 +01:00
Marino Meneghel 0c4d868a8e Use one single getFeatureFlags method to perform API calls
Add explicit `Singleton` annotation to Repository

MAILANDR-48
2022-02-16 15:36:22 +01:00