-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Domains: Remove unused domains/kracken-ui/max-characters-filter
feature flag
#95564
Domains: Remove unused domains/kracken-ui/max-characters-filter
feature flag
#95564
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~348 bytes removed 📉 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~348 bytes removed 📉 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
} = this.props; | ||
const isValid = /^-?\d*$/.test( maxCharacters ); | ||
return ! isValid ? [ translate( 'Value must be a whole number' ) ] : null; | ||
} |
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.
This method only checked if maxCharacters
is an integer, so it can be removed.
return ! isValid && showOverallValidationError | ||
? [ this.props.translate( 'Please correct any errors above' ) ] | ||
: null; | ||
} |
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.
Since getMaxCharactersValidationErrors
only returned null
, isValid
was always true
and this method always returned null
, so it can be removed too.
@@ -41,7 +38,6 @@ export class DropdownFilters extends Component { | |||
|
|||
state = { | |||
showPopover: false, | |||
showOverallValidationError: false, |
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.
This only ever changed to true
when hasValidationErrors
returned true
, which doesn't happen anymore. So this state property can be removed.
e378922
to
5e69387
Compare
Proposed Changes
This PR removes the
domains/kracken-ui/max-characters-filter
feature flag which was alwaysfalse
and only present indevelopment.json
. The feature flag was introduced in #24718, where it was split fromdomains/kracken-ui/filters
, and then it was disabled in #52874.That flag gated a max length option when searching for domains. When provided, that option adds a
max_characters
parameter to the suggestion endpoint, which limits the length of the resulting domain name suggestions.Why are these changes being made?
Removing obsolete and dead code.
Testing Instructions
Since this is only removing dead code, nothing should have changed, but please test:
/start
or searching for a domain for an existing site)Pre-merge Checklist