Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

feature flags: Clean up (and fix) deprectated search-related feature flags#47956

Merged
fkling merged 2 commits into
mainfrom
fkling/cleanup-feature-flag
Feb 22, 2023
Merged

feature flags: Clean up (and fix) deprectated search-related feature flags#47956
fkling merged 2 commits into
mainfrom
fkling/cleanup-feature-flag

Conversation

@fkling

@fkling fkling commented Feb 21, 2023

Copy link
Copy Markdown
Contributor

These flags have been removed in #46086 and #46045 but were accidentally(merge conflict?) added back to the schema in #46086.

Furthermore the showSearchContext flag was still accessed in a couple of places, resulting in a broken experience if it was set to false:

2023-02-21_13-43

This PR removes the flags and removes all uses of showSearchContext flag.

Test plan

grepped for the removed flags (showSearchContext is still used as props in various places though).
Opened web app and verified that the context dropdown is properly populated.

@fkling fkling requested review from a team and limitedmage February 21, 2023 14:18
@cla-bot cla-bot Bot added the cla-signed label Feb 21, 2023
@sg-e2e-regression-test-bob

sg-e2e-regression-test-bob commented Feb 21, 2023

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
-0.01% (-0.34 kb) -0.00% (-0.73 kb) -0.00% (-0.40 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits 5f95a9b and d94a71c or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

@fkling fkling force-pushed the fkling/cleanup-feature-flag branch from 79cb90d to ea4fd57 Compare February 21, 2023 14:38

@valerybugakov valerybugakov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh, that's nice! 🧹

…flags

These flags have been removed in #46086 and #46045 but were
accidentally(?) added back to the schema in (#46086).

Furthermore the `showSearchContext` flag was still accessed in a couple
of places, resulting in a broken experience if it was set to `false`
(see screenshot).

This PR removes the flags and removes all uses of `showSearchContext`
flag.
@fkling fkling force-pushed the fkling/cleanup-feature-flag branch from ea4fd57 to d4be11b Compare February 22, 2023 08:24
@sourcegraph-bot

sourcegraph-bot commented Feb 22, 2023

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff d94a71c...5f95a9b.

Notify File(s)
@limitedmage client/web/src/search/home/SearchPage.story.tsx

@fkling fkling merged commit 5197673 into main Feb 22, 2023
@fkling fkling deleted the fkling/cleanup-feature-flag branch February 22, 2023 09:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants