Skip to content
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

[Upgrade Assistant] Move fix deprecation logs into the es_deprecation_logs page #118688

Conversation

sabarasaba
Copy link
Member

@sabarasaba sabarasaba commented Nov 16, 2021

Removes step completion logic and moves fix_deprecation_logs into es_deprecations_logs folder.

Tests are expected to fail, but will be addressed in a subsequent PR.

}
// Depending upon setHasNoDeprecationLogs would create an infinite loop.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [error, isLoading, hasLogs]);
Copy link
Member Author

Choose a reason for hiding this comment

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

This was part of the logic used used for setting the step completion when there was no deprecation logs.

hasPrivileges,
privilegesMissing,
}) => {
const FixLogsStep: FunctionComponent<Props> = ({ hasPrivileges, privilegesMissing }) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: We should rename this function to something like FixDeprecationLogs, and the same goes for the file itself


// Depending upon setIsComplete would create an infinite loop.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isDeprecationLogIndexingEnabled]);
Copy link
Member Author

Choose a reason for hiding this comment

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

This was part of the logic used used for setting the step completion when there was no deprecation logs.

@sabarasaba sabarasaba self-assigned this Nov 16, 2021
@sabarasaba sabarasaba marked this pull request as ready for review November 16, 2021 14:09
@kibana-ci
Copy link
Collaborator

kibana-ci commented Nov 16, 2021

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests / Cluster upgrade when cluster has been upgraded renders upgrade complete message
  • [job] [logs] Jest Tests / Cluster upgrade when cluster is in the process of a rolling upgrade renders rolling upgrade message
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Privileges check doesn't show analyze and resolve logs if it doesn't have the right privileges
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Privileges check permissions warning callout is hidden if user has the right privileges
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 1 - Toggle log writing and collecting handles network error when fetching logging state
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 1 - Toggle log writing and collecting handles network error when updating logging state
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 1 - Toggle log writing and collecting shows callout when only loggerDeprecation is enabled
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 1 - Toggle log writing and collecting toggles deprecation logging
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 2 - Analyze logs Has a link to see logs in discover app
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 2 - Analyze logs Has a link to see logs in observability app
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 3 - Resolve log issues Allows user to reset last stored date
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 3 - Resolve log issues Handles errors and can retry
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 3 - Resolve log issues No deprecation issues
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 3 - Resolve log issues Poll for logs count renders step as incomplete when a success state is followed by an error state
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 3 - Resolve log issues Shows a toast if deleting cache fails
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 3 - Resolve log issues With deprecation warnings
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step 4 - API compatibility header It shows copy with compatibility api header advice
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step status It's complete when there are no deprecation logs since last checkpoint
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step status It's incomplete when log collection is disabled
  • [job] [logs] Jest Tests / Overview - Fix deprecation logs step Step status It's incomplete when there are deprecation logs since last checkpoint
  • [job] [logs] Default CI Group #4 / Upgrade Assistant Overview Page fixLogsStep "before all" hook for "Shows warnings callout if there are deprecations"
  • [job] [logs] Default CI Group #4 / Upgrade Assistant Overview Page fixLogsStep "before all" hook for "Shows warnings callout if there are deprecations"

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
upgradeAssistant 143 125 -18

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
upgradeAssistant 137.1KB 122.5KB -14.6KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
upgradeAssistant 18.0KB 17.5KB -535.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @sabarasaba

Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

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

LGTM! I will do the rename of the fix deprecation log on my branch. Cheers! 👍

@sabarasaba sabarasaba merged commit bacfa21 into elastic:ua/deprecation_logs_improvements Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants