8000 MBL-2258: Feature flag for phase 2 by Arkariang · Pull Request #2301 · kickstarter/android-oss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MBL-2258: Feature flag for phase 2 #2301

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

Merged
merged 4 commits into from
Apr 17, 2025
Merged

Conversation

Arkariang
Copy link
Contributor
@Arkariang Arkariang commented Apr 15, 2025

📲 What

  • We wanna gate-keep our new additions in case something goes terribly wrong

🛠 How

  • Repurposing phase 1 feature flag!, we've removed old search screen related code, and moved the feature flag checks.

  • Feature flag will be checking now the two new pillBar buttons(filter & project status) and back arrow navigation button in CategorySelection screen.

  • -- If feature flag OFF the user experience is exactly the same as was released on Phase 1.

  • --If feature flag ON new pill buttons and navigation between filter screens is available.

👀 See

| Feature flag off |

FeatureFlagOff.mp4

|feature flag on |

FFOn.mp4

|Compose preview|
Screenshot 2025-04-16 at 8 53 20 AM

| --- | --- |
| | |

📋 QA

  • Turn on/off feature flag ANDROID_SEARCH_FILTER in remote config (INTERNAL RELEASE ONLY!!)

Story 📖

MBL-2258

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 53.33333% with 42 lines in your changes missing coverage. Please review.

Project coverage is 66.53%. Comparing base (7b54fd6) to head (a4dee1f).

Files with missing lines Patch % Lines
...ickstarter/ui/views/compose/search/SearchTopBar.kt 59.18% 16 Missing and 4 partials ⚠️
...ctivities/compose/search/CategorySelectionSheet.kt 48.27% 14 Missing and 1 partial ⚠️
...arter/ui/activities/compose/search/SearchScreen.kt 45.45% 3 Missing and 3 partials ⚠️
...com/kickstarter/libs/utils/extensions/IntentExt.kt 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2301      +/-   ##
============================================
- Coverage     66.74%   66.53%   -0.21%     
+ Complexity     2252     2245       -7     
============================================
  Files           366      365       -1     
  Lines         25329    25210     -119     
  Branches       3753     3749       -4     
============================================
- Hits          16905    16773     -132     
- Misses         6480     6505      +25     
+ Partials       1944     1932      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Arkariang Arkariang changed the title Imartin/mbl 2258 feature flag MBL-2258: Feature flag for phase 2 Apr 16, 2025
@Arkariang Arkariang marked this pull request as ready for review April 16, 2025 15:50
@Arkariang Arkariang self-assigned this Apr 16, 2025
@@ -59,6 +60,8 @@ class SearchAndFilterActivity : ComponentActivity() {
filterMenuViewModelFactory = FilterMenuViewModel.Factory(env)
filterMenuViewModel.getRootCategories()

val phase2ff = env.featureFlagClient()?.getBoolean(FlagKey.ANDROID_SEARCH_FILTER) ?: false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If don't wanna qa by turning off Remote Config feature flag, you can always change values here:
val phase2ff = false -> in this way you can simulate remote config ff off

Copy link
Contributor
@tonyteate tonyteate left a comment

Choose a reason for hiding this comment

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

👍

@Arkariang Arkariang merged commit d745656 into master Apr 17, 2025
3 checks passed
@Arkariang Arkariang deleted the imartin/MBL-2258-feature-flag branch April 17, 2025 16:33
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.

3 participants
0