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
Hide the search results banner if a repo: field is present on sg.com #5142
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5142 +/- ##
==========================================
+ Coverage 46.22% 46.22% +<.01%
==========================================
Files 734 734
Lines 44992 44994 +2
Branches 2602 2604 +2
==========================================
+ Hits 20796 20797 +1
- Misses 22186 22187 +1
Partials 2010 2010
|
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.
It worked locally and not on sourcegraph.com? That is weird. Are you sure this change got deployed?
@@ -149,7 +152,7 @@ export const SearchResultsInfoBar: React.FunctionComponent<SearchResultsInfoBarP | |||
</div> | |||
</small> | |||
)} | |||
{!props.results.alert && props.showDotComMarketing && <ServerBanner />} | |||
{!props.results.alert && props.showDotComMarketing && !props.hasRepoishField && <ServerBanner />} |
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.
Oops, I didn't review this carefully enough (I was on my phone, sorry). I think it would be better to not hide the banner, but instead change the message (to what it was before) if there is a repo:
or repogroup:
param (as I described in #5097 (comment)).
@ggilmore, do you know if this was deployed? |
Test plan: manually tested by commenting out
&& props.showDotComMarketing
locally