-
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
Add a note in the UI when restoring a snapshot with include_global_state: true
that system indices will be overwritten
#92916
Comments
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
This is related to #83014, so consult that issue when addressing this one. |
Hi @gwbrown @cjcenizal! I started looking into this. As-is, I think it is pretty straightforward to implement. However, I have a few questions/concerns about the overall user flow. Let me know what you think.
For example, here, I have |
@alisonelizabeth Looks like we don't yet have an issue for feature states support in the UI. I think we can remove that bit from the message to make it less confusing. In terms of the review step, what would make this less confusing for the user? Maybe we could add an additional bullet at the end that says "System indices", perhaps with a tooltip to explain what they are and why they're being restored. |
👍 I can go ahead and create an issue for feature states, assuming it is something we want to support in the UI.
That's a possibility. I think adding the message outlined in the issue is a step in the right direction, explaining the new behavior to the user. Perhaps that is sufficient for now, as the user would also see if global state is enabled or not on the review step. |
I agree, we can remove that bit (at least until we support Another possibility on the "confusing" point: Assuming we have the snapshot info at this point (the result of |
Thanks! I've opened #95128 to track the UI work for |
Elasticsearch recently added the concept of "Feature States" to snapshots to formalize the process of snapshotting data in system indices (see elastic/elasticsearch#63513). We do not consider this a breaking change as it only impacts snapshots taken by ES >=7.12.0, but it does mean that the behavior when restoring a snapshot with
include_global_state
set totrue
is slightly different than it was previously in the 7.x series.In order to make users more aware of this change, we'd like to consider conditionally adding a note to the UI when restoring a snapshot that would trigger this different behavior.
To be precise, we'd want to show this when:
include_global_state
flag is set totrue
on the restore call; andIf we wanted to be really fancy, the snapshot info returned by the Get Snapshot API contains the indices that will be overwritten, which we could verify against the list of indices that exist in the cluster. However, unless this is very straightforward, it's almost certainly more complex than we need for this use case.
A first draft of the note text would be something like:
Possibly linking to the restore API docs or other docs as appropriate.
The text was updated successfully, but these errors were encountered: