-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
fixing issues with maximum documents and maximum size being set #31998
fixing issues with maximum documents and maximum size being set #31998
Conversation
Pinging @elastic/es-ui |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
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.
LGTM, tested locally and works as expected!
id={`${PHASE_HOT}-${PHASE_ROLLOVER_MAX_DOCUMENTS}`} | ||
value={phaseData[PHASE_ROLLOVER_MAX_DOCUMENTS]} | ||
onChange={async e => { | ||
await setPhaseData( |
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.
The store/actions/policies.js
that contains setPhaseData ()
seems to be synchronous. Do we need to await
here and in other onChange
handlers in this file?
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.
Nope, left over from a refactor, good catch.
💔 Build Failed |
retest |
💚 Build Succeeded |
…tic#31998) * fixing issues with maximum documents and maximum size being set * removing defaults from ES policy load and removing unneeded propTypes * fixing react warnings about controlled -> uncontrolled * fixing tests * more fixes for react controlled -> uncontrolled errors * better fix for react warnings through empty default phases * removing unused translation * removing unnecessary async/awaits in onChange handlers
…tic#31998) * fixing issues with maximum documents and maximum size being set * removing defaults from ES policy load and removing unneeded propTypes * fixing react warnings about controlled -> uncontrolled * fixing tests * more fixes for react controlled -> uncontrolled errors * better fix for react warnings through empty default phases * removing unused translation * removing unnecessary async/awaits in onChange handlers
…) (#32039) * fixing issues with maximum documents and maximum size being set * removing defaults from ES policy load and removing unneeded propTypes * fixing react warnings about controlled -> uncontrolled * fixing tests * more fixes for react controlled -> uncontrolled errors * better fix for react warnings through empty default phases * removing unused translation * removing unnecessary async/awaits in onChange handlers
…tic#31998) * fixing issues with maximum documents and maximum size being set * removing defaults from ES policy load and removing unneeded propTypes * fixing react warnings about controlled -> uncontrolled * fixing tests * more fixes for react controlled -> uncontrolled errors * better fix for react warnings through empty default phases * removing unused translation * removing unnecessary async/awaits in onChange handlers
…) (#32040) * fixing issues with maximum documents and maximum size being set * removing defaults from ES policy load and removing unneeded propTypes * fixing react warnings about controlled -> uncontrolled * fixing tests * more fixes for react controlled -> uncontrolled errors * better fix for react warnings through empty default phases * removing unused translation * removing unnecessary async/awaits in onChange handlers
…) (#32041) * fixing issues with maximum documents and maximum size being set * removing defaults from ES policy load and removing unneeded propTypes * fixing react warnings about controlled -> uncontrolled * fixing tests * more fixes for react controlled -> uncontrolled errors * better fix for react warnings through empty default phases * removing unused translation * removing unnecessary async/awaits in onChange handlers
Closes #31997
This PR fixes a few issues with ILM UI and max_size/max_docs including: