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

Complete snapshot restore, mvp for 2.4 #315

Merged
merged 147 commits into from
Nov 1, 2022

Conversation

phestecAMZN
Copy link
Contributor

Description

This PR resolves bugs/requested UX changes for snapshot restore including but not limited to:

  • customize success/error toasts with buttons/modals/redirection on click
  • add redirect to Restore activities in progress panel upon clicking button in success toast
  • add error modal to view full error
  • remove total size from Indices List until snapshot status api can be utilized
  • resolve issues with auto refresh until restore finishes
  • remove commented code
  • remove console.logs
  • miscellaneous styling/wording changes
  • add warning banner/disable restore until 'restore partial snapshot' is checked, when failed indices are in snapshot
  • Pre-populate various options text fields with basic working content
  • allow navigation to Restore activities panel without selecting a snapshot
  • In later release will be able to display multiple ongoing and past restore activities

Issues Resolved

#243

Check List

  • [ x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Screen Shot 2022-10-27 at 7 23 33 AM
Screen Shot 2022-10-27 at 7 24 02 AM
Screen Shot 2022-10-27 at 7 29 39 AM
Screen Shot 2022-10-27 at 7 26 45 AM
<img width="349" alt="Screen Shot 2022-10-21 at 4 48 23 PM" src="https://user-images.githubusercontent.com/11152
Screen Shot 2022-10-25 at 10 24 56 AM
6961/198326779-
Screen Shot 2022-10-21 at 3 56 18 PM
4fdf552c-77
Screen Shot 2022-10-21 at 4 46 42 PM
f1-48c5-a211-859c9e439440.png">
Screen Shot 2022-10-27 at 8 06 02 AM
Screen Shot 2022-10-27 at 8 06 55 AM
Screen Shot 2022-10-27 at 8 12 44 AM
Screen Shot 2022-10-27 at 8 13 48 AM

phestecAMZN and others added 30 commits August 24, 2022 19:41
Signed-off-by: Chris Hesterman <[email protected]>

Currently only visually functional. TODO - make it apply the options

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]>

Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions

Signed-off-by: Chris Hesterman <[email protected]>

Move 'restore' button between 'delete' and 'take snapshot'

Signed-off-by: Chris Hesterman <[email protected]>

Set default rename option to 'add prefix'

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]>

Implement first 4 Advanced restore options functionality

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]>

Passing tests for create repo and create snapshot

Signed-off-by: Chris Hesterman <[email protected]>
@phestecAMZN phestecAMZN requested a review from a team October 27, 2022 15:17
}

export const RestoreActivitiesPanel: React.FC<RestoreActivitiesPanelProps> = ({ snapshotManagementService, snapshotId, restoreStartRef }: RestoreActivitiesPanelProps) => {
const intervalIds: ReturnType<typeof setInterval>[] = [];

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this ensures that all intervals are cleared when restore process has ended. once process ends, this array is looped through, clearing each interval leaving to 'stragglers'

text?: JSX.Element;
}

export interface RestoreError {
Copy link
Member

Choose a reason for hiding this comment

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

nit: Seems to a general interface, consider rename as ErrorToastMessage?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, I created this specifically for Restore errors per UX request to have specific functionality. How about RestoreErrorToastMessage ? there are at least 4 common errors that can happen during restore

onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
}

const ErrorModal = ({ onClick, error }: ErrorModalProps) => {
Copy link
Member

Choose a reason for hiding this comment

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

There is an existing way of showing modal in this repo.
Check this file and related usage: public/components/Modal/Modal.tsx
Can refactor later

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will do when time allows.


if (stage.slice(0, 4) !== "Done") {
getStatusInterval = setInterval(() => {
if (stage !== "Done (100%)" || indices.length < restoreCount) {
Copy link
Member

Choose a reason for hiding this comment

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

Why we need multiple intervals?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This process needs to start and stop automatically, which led me to use "useEffect". Since useEffect runs again when state changes theres no way around it. Thus the array to store them in outside of useEffect was the way I eventually found to ensure that auto refresh would absolutely stop every time 100% is achieved. I can experiment with it for sure but due to time constraints can we tag this for a refactor when time allows? It works just as it should atm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That may not be a perfect react explanation^

if (
item.indexOf("kibana") < 0 &&
response[item as keyof GetIndexRecoveryResponse].shards &&
response[item as keyof GetIndexRecoveryResponse].shards[0].start_time_in_millis >= restoreStartRef
Copy link
Member

Choose a reason for hiding this comment

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

Make sure to document this saying the restore activities panel only shows the latest snapshot restore activity

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do when the time arrives. Shall I put a comment in the file as well?

server/models/interfaces.ts Outdated Show resolved Hide resolved

if (stage.slice(0, 4) !== "Done") {
getStatusInterval = setInterval(() => {
if (stage !== "Done (100%)" || indices.length < restoreCount) {
Copy link
Member

Choose a reason for hiding this comment

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

Can these be one true and one false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Line 37 is checking if either one is true, then set another interval. Not sure what you mean. Clarify?

Copy link
Member

Choose a reason for hiding this comment

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

I am thinking if stage is Done, it also means indices.length == restoreCount, or I actually don't understand restoreCount means...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

restore count represents number of indices that have a "DONE" status as indicated by the recovery api.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed second half of expression for next PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it was there in the earlier phase when I hadn't gotten the stages to work quite right.

@@ -237,12 +270,17 @@ export default class RestoreSnapshotFlyout extends Component<RestoreSnapshotProp
}
});
const formattedIndices = currIndices.map((index) => ({ index: index.index, ["store.size"]: index["store.size"] }))
const inactiveIndices = snapshot?.indices.filter((index) => !activeIndexNames.includes(index) && index.length)
const inactiveIndices = snapshot?.indices.filter((index) => !activeIndexNames.includes(index) && index.length && index.indexOf("kibana") < 0)
Copy link
Member

Choose a reason for hiding this comment

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

Can we add some comment around active's meaning here. Didn't review this part before, got lost here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will either do that or give better const names.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code is removed in next PR, so no more confusion!

public/pages/Snapshots/helper.tsx Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #315 (b61ccec) into main (fa09afb) will decrease coverage by 0.46%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #315      +/-   ##
==========================================
- Coverage   50.41%   49.94%   -0.47%     
==========================================
  Files         191      192       +1     
  Lines        6064     6137      +73     
  Branches      942      960      +18     
==========================================
+ Hits         3057     3065       +8     
- Misses       2785     2850      +65     
  Partials      222      222              
Impacted Files Coverage Δ
.../RestoreActivitiesPanel/RestoreActivitiesPanel.tsx 16.00% <0.00%> (-5.54%) ⬇️
...ashboards-plugin/public/pages/Snapshots/helper.tsx 26.31% <0.00%> (-2.26%) ⬇️
...lugin/public/services/SnapshotManagementService.ts 0.00% <0.00%> (ø)
...pages/Snapshots/components/IndexList/IndexList.tsx 0.00% <0.00%> (ø)
...s/Snapshots/components/RenameInput/RenameInput.tsx 100.00% <0.00%> (ø)
...AdvancedOptions/SnapshotRestoreAdvancedOptions.tsx 0.00% <0.00%> (ø)
...ges/Snapshots/components/ErrorModal/ErrorModal.tsx 0.00% <0.00%> (ø)
...ts/RestoreSnapshotFlyout/RestoreSnapshotFlyout.tsx 15.49% <0.00%> (+0.49%) ⬆️
...pages/Snapshots/containers/Snapshots/Snapshots.tsx 9.75% <0.00%> (+2.66%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@phestecAMZN phestecAMZN merged commit 58b88b5 into opensearch-project:main Nov 1, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 1, 2022
* Change alignment of Snapshot Management panels in pages/Main/Main.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Unify vertical button alignment across panels, ContentPanel.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots, add ROUTE_STYLE variable

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder restore button to Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Comment out line 20 rollups_spec.js in cypress/integration/

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused code and comment cypress/integration/rollups_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Starting adaptation/use of existing code for Restore functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Adapt Snapshots.tsx to include RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int

Signed-off-by: Chris Hesterman <[email protected]>

* Implement RestoreSnapshotFlyout open/close

Signed-off-by: Chris Hesterman <[email protected]>

* Make Snapshot name appear on RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add/adapt restoreSnapshot to server/SnapshotManagementService

Signed-off-by: Chris Hesterman <[email protected]>

* Add route for restoreSnapshot in server/routes.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Rudimentary restore from snapshot functionality reached, buggy

Signed-off-by: Chris Hesterman <[email protected]>

* Fix index list-snapshot restore, restrict restore to single selection

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, commented out code

Signed-off-by: Chris Hesterman <[email protected]>

* Create Advanced options accordion for Snapshot restore.

Signed-off-by: Chris Hesterman <[email protected]>

Currently only visually functional. TODO - make it apply the options

Signed-off-by: Chris Hesterman <[email protected]>

* Add initial restore/rename options to ui. Only visual functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve radio button events not firing

Signed-off-by: Chris Hesterman <[email protected]>

Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions

Signed-off-by: Chris Hesterman <[email protected]>

Move 'restore' button between 'delete' and 'take snapshot'

Signed-off-by: Chris Hesterman <[email protected]>

Set default rename option to 'add prefix'

Signed-off-by: Chris Hesterman <[email protected]>

* Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions

Signed-off-by: Chris Hesterman <[email protected]>

* Fix issues with restore specific indices

Signed-off-by: Chris Hesterman <[email protected]>

Implement first 4 Advanced restore options functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing for snapshots

Signed-off-by: Chris Hesterman <[email protected]>

Passing tests for create repo and create snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing Snapshots. Create repo and Create snapshot done

Signed-off-by: Chris Hesterman <[email protected]>

* Implement add_prefix functionality for snapshot restore

Signed-off-by: Chris Hesterman <[email protected]>

* Implement rename indices option for restore snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, unusted variables in SnapshotFlyout, SMservice

Signed-off-by: Chris Hesterman <[email protected]>

* Add full stop to help text/errors, add RESTORE_OPTIONS enum

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder examples to rename options, add line breaks to help text

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on custom index settings, ignore index settings

Signed-off-by: Chris Hesterman <[email protected]>

* Implement custom index settings functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Successfully implement/debug custom index settings/ignore index settings.

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on IndexList component, using cat.index.

Signed-off-by: Chris Hesterman <[email protected]>

* IndexList with pagination fully functional, todo: styling

Signed-off-by: Chris Hesterman <[email protected]>

* Add RestoreActivitiesPanel component folder, files (starter)

Signed-off-by: Chris Hesterman <[email protected]>

* Complete IndexList with pagination, sorting.

Signed-off-by: Chris Hesterman <[email protected]>

* Add maxWidth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]

* Implement tabs on Snapshots page: Snapshots, Restore activities...

Signed-off-by: Chris Hesterman <[email protected]>

Implement skeleton Restore activities panel, panel switching in Snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on catIndexRecovery, TODO - debug

Signed-off-by: Chris Hesterman <[email protected]>

* Fix syntax bug - server/services/SnapshotManagementService.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Resolved some errors, getting a response but not correct response.

Signed-off-by: Chris Hesterman <[email protected]>

* Add back line 20 in rollups_spec, required by changes in 2.3 release.

Signed-off-by: Chris Hesterman <[email protected]>

* Implement code to use Index Recovery api. successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress extracting data and displaying in Restore activities

Signed-off-by: Chris Hesterman <[email protected]>

* Implement Restore Activities with self updating until restore done

Signed-off-by: Chris Hesterman <[email protected]>

* Add clickable indexes link and hello world click handler

Signed-off-by: Chris Hesterman <[email protected]>

* Add toast if no snapshot selected upon restore activities click

Signed-off-by: Chris Hesterman <[email protected]>

Add empty flyout where restoring indices will be listed

Signed-off-by: Chris Hesterman <[email protected]>

* Change danger toast to warning when no snapshot selected

Signed-off-by: Chris Hesterman <[email protected]>

* Fix bug when both custom settings and ignore settings chosen

Signed-off-by: Chris Hesterman <[email protected]>

* Add refresh button to restore activities page, remove auto refreshing

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused getRepos func, add repo prop, trim state in RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add increment to 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Remove index settings from options if none entered, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in help text, use url from constants.

Signed-off-by: Chris Hesterman <[email protected]>

* Create CatSnapshotIndex in server/models/interfaces, apply in IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in IndexList, add CatSnapshotIndex interface

Signed-off-by: Chris Hesterman <[email protected]>

* Changes to RestoreActivitesPanel to prep for listing indice

Signed-off-by: Chris Hesterman <[email protected]>

* Re do merge commit - forgot to save file.

Signed-off-by: Chris Hesterman <[email protected]>

* Snapshots testing in progress

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress, cypress testing

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit testing for AddPrefixInput, RenameInput components

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRenameOptions component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRestoreOption component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotIndicesInput component

Signed-off-by: Chris Hesterman <[email protected]>

* Change 'Indices' to 'Index' if only 1 index.

Signed-off-by: Chris Hesterman <[email protected]>

* Replace anchor tags with EuiLinks set to external, rename options

Signed-off-by: Chris Hesterman <[email protected]>

* Change anchor tags to EuiLinks, IndexSettings

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel attribute to EuiLink, IndexSettingsInput

Signed-off-by: Chris Hesterman <[email protected]>

* Auto populate prefix field initially with "restored_"

Signed-off-by: Chris Hesterman <[email protected]>

* Change Restore button to color="primary" (blue)

Signed-off-by: Chris Hesterman <[email protected]>

* Make flyout close on restore, direct user to activities tab

Signed-off-by: Chris Hesterman <[email protected]>

* Title case flyout 'status', use EuiHealth for status color dot

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status check until 'DONE', RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status update until 'SUCCESS', Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Change tab implementation to be consistent with other plugins

Signed-off-by: Chris Hesterman <[email protected]>

* Minor text and styling fixes, Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Fix styling to match main Snapshot page, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Update text to match mocks in Snapshots, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Pre fill rename inputs, prefix input with default values from mock

Signed-off-by: Chris Hesterman <[email protected]>

* Change to title case for status in Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Add warning banner if snapshot is partial, with checkbox to allow

Signed-off-by: Chris Hesterman <[email protected]>

* Fix behavior of IndexList, include size when active, else unknown

Signed-off-by: Chris Hesterman <[email protected]>

* Functioning start/stop times in RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

Accurate listing of indices being restored from snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Restore start/stop working. Auto updating working.

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiHealth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore monitoring, finally error free

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on restore/delete buttons correctly disabled edge cases

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiOverlayMask when RestoreSnapshotFlyout active

Signed-off-by: Chris Hesterman <[email protected]>

* Create user friendly error toasts with button to full error

Signed-off-by: Chris Hesterman <[email protected]>

* Direct user to browser console for full error from error toasts

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore success toast with button. Close

Signed-off-by: Chris Hesterman <[email protected]>

* Custom restore success toast with button to activities panel done

Signed-off-by: Chris Hesterman <[email protected]>

* Created custom error toast. Need to debug.

Signed-off-by: Chris Hesterman <[email protected]>

* Custom error and success toasts fully functional and error free.

Signed-off-by: Chris Hesterman <[email protected]>

* Add and debug Index Settings portion of Advanced Options. Successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove stray console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Add, update jest and cypress testing for snapshots & restore snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Save small change snapshots_spec, forgot before prev commit

Signed-off-by: Chris Hesterman <[email protected]>

* Version bump 2.3.0 to 2.3 1

Signed-off-by: Chris Hesterman <[email protected]>

* Add version bump 2.3.1 for OS in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Remove 2.3.1 bump

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.3 to 2.3.0 cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Change OSDB version to 2.3.1, opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.4 to 2.4.0 opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Update for 2.4

Signed-off-by: Chris Hesterman <[email protected]>

* Update help text, Snapshots.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Remove Total size column from IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Disable restore if partial snapshot but not checked in banner

Signed-off-by: Chris Hesterman <[email protected]>

Remove total size column in indexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add status code and code meaning to toasts, error modal

Signed-off-by: Chris Hesterman <[email protected]>

* Progress making Restore activities panel independent

Signed-off-by: Chris Hesterman <[email protected]>

* RestoreActivitiesPanel no longer needs selected snapshot to access

Signed-off-by: Chris Hesterman <[email protected]>

* Clean up unused code,console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Modify error toasts to be more user friendly

Signed-off-by: Chris Hesterman <[email protected]>

* Handle bad regex input, handle bad JSON input, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add check and toast for no indices selected, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, console log.

Signed-off-by: Chris Hesterman <[email protected]>

* Small style changes, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve one missed conflict from previous merge

Signed-off-by: Chris Hesterman <[email protected]>

* Update snapshots_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unneeded cy.wait, snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Fix small bug with refresh button, Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Remove conflicts in server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused prop"ignore", change ternary to if() in toast helper

Signed-off-by: Chris Hesterman <[email protected]>

* Change label text styling for radios and checkboxes in flyout

Signed-off-by: Chris Hesterman <[email protected]>

* Create checkBoxLabel component in helper.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots for unit tests.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove default close button from Restore activities/indiceslist

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]
(cherry picked from commit 58b88b5)
phestecAMZN added a commit that referenced this pull request Nov 1, 2022
* Change alignment of Snapshot Management panels in pages/Main/Main.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Unify vertical button alignment across panels, ContentPanel.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots, add ROUTE_STYLE variable

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder restore button to Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Comment out line 20 rollups_spec.js in cypress/integration/

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused code and comment cypress/integration/rollups_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Starting adaptation/use of existing code for Restore functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Adapt Snapshots.tsx to include RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int

Signed-off-by: Chris Hesterman <[email protected]>

* Implement RestoreSnapshotFlyout open/close

Signed-off-by: Chris Hesterman <[email protected]>

* Make Snapshot name appear on RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add/adapt restoreSnapshot to server/SnapshotManagementService

Signed-off-by: Chris Hesterman <[email protected]>

* Add route for restoreSnapshot in server/routes.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Rudimentary restore from snapshot functionality reached, buggy

Signed-off-by: Chris Hesterman <[email protected]>

* Fix index list-snapshot restore, restrict restore to single selection

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, commented out code

Signed-off-by: Chris Hesterman <[email protected]>

* Create Advanced options accordion for Snapshot restore.

Signed-off-by: Chris Hesterman <[email protected]>

Currently only visually functional. TODO - make it apply the options

Signed-off-by: Chris Hesterman <[email protected]>

* Add initial restore/rename options to ui. Only visual functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve radio button events not firing

Signed-off-by: Chris Hesterman <[email protected]>

Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions

Signed-off-by: Chris Hesterman <[email protected]>

Move 'restore' button between 'delete' and 'take snapshot'

Signed-off-by: Chris Hesterman <[email protected]>

Set default rename option to 'add prefix'

Signed-off-by: Chris Hesterman <[email protected]>

* Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions

Signed-off-by: Chris Hesterman <[email protected]>

* Fix issues with restore specific indices

Signed-off-by: Chris Hesterman <[email protected]>

Implement first 4 Advanced restore options functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing for snapshots

Signed-off-by: Chris Hesterman <[email protected]>

Passing tests for create repo and create snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing Snapshots. Create repo and Create snapshot done

Signed-off-by: Chris Hesterman <[email protected]>

* Implement add_prefix functionality for snapshot restore

Signed-off-by: Chris Hesterman <[email protected]>

* Implement rename indices option for restore snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, unusted variables in SnapshotFlyout, SMservice

Signed-off-by: Chris Hesterman <[email protected]>

* Add full stop to help text/errors, add RESTORE_OPTIONS enum

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder examples to rename options, add line breaks to help text

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on custom index settings, ignore index settings

Signed-off-by: Chris Hesterman <[email protected]>

* Implement custom index settings functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Successfully implement/debug custom index settings/ignore index settings.

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on IndexList component, using cat.index.

Signed-off-by: Chris Hesterman <[email protected]>

* IndexList with pagination fully functional, todo: styling

Signed-off-by: Chris Hesterman <[email protected]>

* Add RestoreActivitiesPanel component folder, files (starter)

Signed-off-by: Chris Hesterman <[email protected]>

* Complete IndexList with pagination, sorting.

Signed-off-by: Chris Hesterman <[email protected]>

* Add maxWidth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]

* Implement tabs on Snapshots page: Snapshots, Restore activities...

Signed-off-by: Chris Hesterman <[email protected]>

Implement skeleton Restore activities panel, panel switching in Snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on catIndexRecovery, TODO - debug

Signed-off-by: Chris Hesterman <[email protected]>

* Fix syntax bug - server/services/SnapshotManagementService.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Resolved some errors, getting a response but not correct response.

Signed-off-by: Chris Hesterman <[email protected]>

* Add back line 20 in rollups_spec, required by changes in 2.3 release.

Signed-off-by: Chris Hesterman <[email protected]>

* Implement code to use Index Recovery api. successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress extracting data and displaying in Restore activities

Signed-off-by: Chris Hesterman <[email protected]>

* Implement Restore Activities with self updating until restore done

Signed-off-by: Chris Hesterman <[email protected]>

* Add clickable indexes link and hello world click handler

Signed-off-by: Chris Hesterman <[email protected]>

* Add toast if no snapshot selected upon restore activities click

Signed-off-by: Chris Hesterman <[email protected]>

Add empty flyout where restoring indices will be listed

Signed-off-by: Chris Hesterman <[email protected]>

* Change danger toast to warning when no snapshot selected

Signed-off-by: Chris Hesterman <[email protected]>

* Fix bug when both custom settings and ignore settings chosen

Signed-off-by: Chris Hesterman <[email protected]>

* Add refresh button to restore activities page, remove auto refreshing

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused getRepos func, add repo prop, trim state in RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add increment to 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Remove index settings from options if none entered, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in help text, use url from constants.

Signed-off-by: Chris Hesterman <[email protected]>

* Create CatSnapshotIndex in server/models/interfaces, apply in IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in IndexList, add CatSnapshotIndex interface

Signed-off-by: Chris Hesterman <[email protected]>

* Changes to RestoreActivitesPanel to prep for listing indice

Signed-off-by: Chris Hesterman <[email protected]>

* Re do merge commit - forgot to save file.

Signed-off-by: Chris Hesterman <[email protected]>

* Snapshots testing in progress

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress, cypress testing

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit testing for AddPrefixInput, RenameInput components

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRenameOptions component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRestoreOption component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotIndicesInput component

Signed-off-by: Chris Hesterman <[email protected]>

* Change 'Indices' to 'Index' if only 1 index.

Signed-off-by: Chris Hesterman <[email protected]>

* Replace anchor tags with EuiLinks set to external, rename options

Signed-off-by: Chris Hesterman <[email protected]>

* Change anchor tags to EuiLinks, IndexSettings

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel attribute to EuiLink, IndexSettingsInput

Signed-off-by: Chris Hesterman <[email protected]>

* Auto populate prefix field initially with "restored_"

Signed-off-by: Chris Hesterman <[email protected]>

* Change Restore button to color="primary" (blue)

Signed-off-by: Chris Hesterman <[email protected]>

* Make flyout close on restore, direct user to activities tab

Signed-off-by: Chris Hesterman <[email protected]>

* Title case flyout 'status', use EuiHealth for status color dot

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status check until 'DONE', RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status update until 'SUCCESS', Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Change tab implementation to be consistent with other plugins

Signed-off-by: Chris Hesterman <[email protected]>

* Minor text and styling fixes, Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Fix styling to match main Snapshot page, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Update text to match mocks in Snapshots, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Pre fill rename inputs, prefix input with default values from mock

Signed-off-by: Chris Hesterman <[email protected]>

* Change to title case for status in Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Add warning banner if snapshot is partial, with checkbox to allow

Signed-off-by: Chris Hesterman <[email protected]>

* Fix behavior of IndexList, include size when active, else unknown

Signed-off-by: Chris Hesterman <[email protected]>

* Functioning start/stop times in RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

Accurate listing of indices being restored from snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Restore start/stop working. Auto updating working.

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiHealth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore monitoring, finally error free

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on restore/delete buttons correctly disabled edge cases

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiOverlayMask when RestoreSnapshotFlyout active

Signed-off-by: Chris Hesterman <[email protected]>

* Create user friendly error toasts with button to full error

Signed-off-by: Chris Hesterman <[email protected]>

* Direct user to browser console for full error from error toasts

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore success toast with button. Close

Signed-off-by: Chris Hesterman <[email protected]>

* Custom restore success toast with button to activities panel done

Signed-off-by: Chris Hesterman <[email protected]>

* Created custom error toast. Need to debug.

Signed-off-by: Chris Hesterman <[email protected]>

* Custom error and success toasts fully functional and error free.

Signed-off-by: Chris Hesterman <[email protected]>

* Add and debug Index Settings portion of Advanced Options. Successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove stray console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Add, update jest and cypress testing for snapshots & restore snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Save small change snapshots_spec, forgot before prev commit

Signed-off-by: Chris Hesterman <[email protected]>

* Version bump 2.3.0 to 2.3 1

Signed-off-by: Chris Hesterman <[email protected]>

* Add version bump 2.3.1 for OS in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Remove 2.3.1 bump

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.3 to 2.3.0 cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Change OSDB version to 2.3.1, opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.4 to 2.4.0 opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Update for 2.4

Signed-off-by: Chris Hesterman <[email protected]>

* Update help text, Snapshots.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Remove Total size column from IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Disable restore if partial snapshot but not checked in banner

Signed-off-by: Chris Hesterman <[email protected]>

Remove total size column in indexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add status code and code meaning to toasts, error modal

Signed-off-by: Chris Hesterman <[email protected]>

* Progress making Restore activities panel independent

Signed-off-by: Chris Hesterman <[email protected]>

* RestoreActivitiesPanel no longer needs selected snapshot to access

Signed-off-by: Chris Hesterman <[email protected]>

* Clean up unused code,console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Modify error toasts to be more user friendly

Signed-off-by: Chris Hesterman <[email protected]>

* Handle bad regex input, handle bad JSON input, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add check and toast for no indices selected, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, console log.

Signed-off-by: Chris Hesterman <[email protected]>

* Small style changes, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve one missed conflict from previous merge

Signed-off-by: Chris Hesterman <[email protected]>

* Update snapshots_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unneeded cy.wait, snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Fix small bug with refresh button, Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Remove conflicts in server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused prop"ignore", change ternary to if() in toast helper

Signed-off-by: Chris Hesterman <[email protected]>

* Change label text styling for radios and checkboxes in flyout

Signed-off-by: Chris Hesterman <[email protected]>

* Create checkBoxLabel component in helper.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots for unit tests.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove default close button from Restore activities/indiceslist

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]
(cherry picked from commit 58b88b5)

Co-authored-by: Chris Hesterman <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 2, 2022
* Change alignment of Snapshot Management panels in pages/Main/Main.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Unify vertical button alignment across panels, ContentPanel.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots, add ROUTE_STYLE variable

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder restore button to Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Comment out line 20 rollups_spec.js in cypress/integration/

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused code and comment cypress/integration/rollups_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Starting adaptation/use of existing code for Restore functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Adapt Snapshots.tsx to include RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int

Signed-off-by: Chris Hesterman <[email protected]>

* Implement RestoreSnapshotFlyout open/close

Signed-off-by: Chris Hesterman <[email protected]>

* Make Snapshot name appear on RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add/adapt restoreSnapshot to server/SnapshotManagementService

Signed-off-by: Chris Hesterman <[email protected]>

* Add route for restoreSnapshot in server/routes.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Rudimentary restore from snapshot functionality reached, buggy

Signed-off-by: Chris Hesterman <[email protected]>

* Fix index list-snapshot restore, restrict restore to single selection

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, commented out code

Signed-off-by: Chris Hesterman <[email protected]>

* Create Advanced options accordion for Snapshot restore.

Signed-off-by: Chris Hesterman <[email protected]>

Currently only visually functional. TODO - make it apply the options

Signed-off-by: Chris Hesterman <[email protected]>

* Add initial restore/rename options to ui. Only visual functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve radio button events not firing

Signed-off-by: Chris Hesterman <[email protected]>

Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions

Signed-off-by: Chris Hesterman <[email protected]>

Move 'restore' button between 'delete' and 'take snapshot'

Signed-off-by: Chris Hesterman <[email protected]>

Set default rename option to 'add prefix'

Signed-off-by: Chris Hesterman <[email protected]>

* Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions

Signed-off-by: Chris Hesterman <[email protected]>

* Fix issues with restore specific indices

Signed-off-by: Chris Hesterman <[email protected]>

Implement first 4 Advanced restore options functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing for snapshots

Signed-off-by: Chris Hesterman <[email protected]>

Passing tests for create repo and create snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing Snapshots. Create repo and Create snapshot done

Signed-off-by: Chris Hesterman <[email protected]>

* Implement add_prefix functionality for snapshot restore

Signed-off-by: Chris Hesterman <[email protected]>

* Implement rename indices option for restore snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, unusted variables in SnapshotFlyout, SMservice

Signed-off-by: Chris Hesterman <[email protected]>

* Add full stop to help text/errors, add RESTORE_OPTIONS enum

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder examples to rename options, add line breaks to help text

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on custom index settings, ignore index settings

Signed-off-by: Chris Hesterman <[email protected]>

* Implement custom index settings functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Successfully implement/debug custom index settings/ignore index settings.

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on IndexList component, using cat.index.

Signed-off-by: Chris Hesterman <[email protected]>

* IndexList with pagination fully functional, todo: styling

Signed-off-by: Chris Hesterman <[email protected]>

* Add RestoreActivitiesPanel component folder, files (starter)

Signed-off-by: Chris Hesterman <[email protected]>

* Complete IndexList with pagination, sorting.

Signed-off-by: Chris Hesterman <[email protected]>

* Add maxWidth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]

* Implement tabs on Snapshots page: Snapshots, Restore activities...

Signed-off-by: Chris Hesterman <[email protected]>

Implement skeleton Restore activities panel, panel switching in Snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on catIndexRecovery, TODO - debug

Signed-off-by: Chris Hesterman <[email protected]>

* Fix syntax bug - server/services/SnapshotManagementService.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Resolved some errors, getting a response but not correct response.

Signed-off-by: Chris Hesterman <[email protected]>

* Add back line 20 in rollups_spec, required by changes in 2.3 release.

Signed-off-by: Chris Hesterman <[email protected]>

* Implement code to use Index Recovery api. successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress extracting data and displaying in Restore activities

Signed-off-by: Chris Hesterman <[email protected]>

* Implement Restore Activities with self updating until restore done

Signed-off-by: Chris Hesterman <[email protected]>

* Add clickable indexes link and hello world click handler

Signed-off-by: Chris Hesterman <[email protected]>

* Add toast if no snapshot selected upon restore activities click

Signed-off-by: Chris Hesterman <[email protected]>

Add empty flyout where restoring indices will be listed

Signed-off-by: Chris Hesterman <[email protected]>

* Change danger toast to warning when no snapshot selected

Signed-off-by: Chris Hesterman <[email protected]>

* Fix bug when both custom settings and ignore settings chosen

Signed-off-by: Chris Hesterman <[email protected]>

* Add refresh button to restore activities page, remove auto refreshing

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused getRepos func, add repo prop, trim state in RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add increment to 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Remove index settings from options if none entered, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in help text, use url from constants.

Signed-off-by: Chris Hesterman <[email protected]>

* Create CatSnapshotIndex in server/models/interfaces, apply in IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in IndexList, add CatSnapshotIndex interface

Signed-off-by: Chris Hesterman <[email protected]>

* Changes to RestoreActivitesPanel to prep for listing indice

Signed-off-by: Chris Hesterman <[email protected]>

* Re do merge commit - forgot to save file.

Signed-off-by: Chris Hesterman <[email protected]>

* Snapshots testing in progress

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress, cypress testing

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit testing for AddPrefixInput, RenameInput components

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRenameOptions component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRestoreOption component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotIndicesInput component

Signed-off-by: Chris Hesterman <[email protected]>

* Change 'Indices' to 'Index' if only 1 index.

Signed-off-by: Chris Hesterman <[email protected]>

* Replace anchor tags with EuiLinks set to external, rename options

Signed-off-by: Chris Hesterman <[email protected]>

* Change anchor tags to EuiLinks, IndexSettings

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel attribute to EuiLink, IndexSettingsInput

Signed-off-by: Chris Hesterman <[email protected]>

* Auto populate prefix field initially with "restored_"

Signed-off-by: Chris Hesterman <[email protected]>

* Change Restore button to color="primary" (blue)

Signed-off-by: Chris Hesterman <[email protected]>

* Make flyout close on restore, direct user to activities tab

Signed-off-by: Chris Hesterman <[email protected]>

* Title case flyout 'status', use EuiHealth for status color dot

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status check until 'DONE', RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status update until 'SUCCESS', Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Change tab implementation to be consistent with other plugins

Signed-off-by: Chris Hesterman <[email protected]>

* Minor text and styling fixes, Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Fix styling to match main Snapshot page, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Update text to match mocks in Snapshots, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Pre fill rename inputs, prefix input with default values from mock

Signed-off-by: Chris Hesterman <[email protected]>

* Change to title case for status in Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Add warning banner if snapshot is partial, with checkbox to allow

Signed-off-by: Chris Hesterman <[email protected]>

* Fix behavior of IndexList, include size when active, else unknown

Signed-off-by: Chris Hesterman <[email protected]>

* Functioning start/stop times in RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

Accurate listing of indices being restored from snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Restore start/stop working. Auto updating working.

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiHealth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore monitoring, finally error free

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on restore/delete buttons correctly disabled edge cases

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiOverlayMask when RestoreSnapshotFlyout active

Signed-off-by: Chris Hesterman <[email protected]>

* Create user friendly error toasts with button to full error

Signed-off-by: Chris Hesterman <[email protected]>

* Direct user to browser console for full error from error toasts

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore success toast with button. Close

Signed-off-by: Chris Hesterman <[email protected]>

* Custom restore success toast with button to activities panel done

Signed-off-by: Chris Hesterman <[email protected]>

* Created custom error toast. Need to debug.

Signed-off-by: Chris Hesterman <[email protected]>

* Custom error and success toasts fully functional and error free.

Signed-off-by: Chris Hesterman <[email protected]>

* Add and debug Index Settings portion of Advanced Options. Successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove stray console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Add, update jest and cypress testing for snapshots & restore snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Save small change snapshots_spec, forgot before prev commit

Signed-off-by: Chris Hesterman <[email protected]>

* Version bump 2.3.0 to 2.3 1

Signed-off-by: Chris Hesterman <[email protected]>

* Add version bump 2.3.1 for OS in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Remove 2.3.1 bump

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.3 to 2.3.0 cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Change OSDB version to 2.3.1, opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.4 to 2.4.0 opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Update for 2.4

Signed-off-by: Chris Hesterman <[email protected]>

* Update help text, Snapshots.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Remove Total size column from IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Disable restore if partial snapshot but not checked in banner

Signed-off-by: Chris Hesterman <[email protected]>

Remove total size column in indexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add status code and code meaning to toasts, error modal

Signed-off-by: Chris Hesterman <[email protected]>

* Progress making Restore activities panel independent

Signed-off-by: Chris Hesterman <[email protected]>

* RestoreActivitiesPanel no longer needs selected snapshot to access

Signed-off-by: Chris Hesterman <[email protected]>

* Clean up unused code,console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Modify error toasts to be more user friendly

Signed-off-by: Chris Hesterman <[email protected]>

* Handle bad regex input, handle bad JSON input, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add check and toast for no indices selected, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, console log.

Signed-off-by: Chris Hesterman <[email protected]>

* Small style changes, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve one missed conflict from previous merge

Signed-off-by: Chris Hesterman <[email protected]>

* Update snapshots_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unneeded cy.wait, snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Fix small bug with refresh button, Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Remove conflicts in server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused prop"ignore", change ternary to if() in toast helper

Signed-off-by: Chris Hesterman <[email protected]>

* Change label text styling for radios and checkboxes in flyout

Signed-off-by: Chris Hesterman <[email protected]>

* Create checkBoxLabel component in helper.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots for unit tests.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove default close button from Restore activities/indiceslist

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]
(cherry picked from commit 58b88b5)
phestecAMZN added a commit that referenced this pull request Nov 2, 2022
* Change alignment of Snapshot Management panels in pages/Main/Main.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Unify vertical button alignment across panels, ContentPanel.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots, add ROUTE_STYLE variable

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder restore button to Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Comment out line 20 rollups_spec.js in cypress/integration/

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused code and comment cypress/integration/rollups_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Starting adaptation/use of existing code for Restore functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Adapt Snapshots.tsx to include RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int

Signed-off-by: Chris Hesterman <[email protected]>

* Implement RestoreSnapshotFlyout open/close

Signed-off-by: Chris Hesterman <[email protected]>

* Make Snapshot name appear on RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add/adapt restoreSnapshot to server/SnapshotManagementService

Signed-off-by: Chris Hesterman <[email protected]>

* Add route for restoreSnapshot in server/routes.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Rudimentary restore from snapshot functionality reached, buggy

Signed-off-by: Chris Hesterman <[email protected]>

* Fix index list-snapshot restore, restrict restore to single selection

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, commented out code

Signed-off-by: Chris Hesterman <[email protected]>

* Create Advanced options accordion for Snapshot restore.

Signed-off-by: Chris Hesterman <[email protected]>

Currently only visually functional. TODO - make it apply the options

Signed-off-by: Chris Hesterman <[email protected]>

* Add initial restore/rename options to ui. Only visual functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve radio button events not firing

Signed-off-by: Chris Hesterman <[email protected]>

Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions

Signed-off-by: Chris Hesterman <[email protected]>

Move 'restore' button between 'delete' and 'take snapshot'

Signed-off-by: Chris Hesterman <[email protected]>

Set default rename option to 'add prefix'

Signed-off-by: Chris Hesterman <[email protected]>

* Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions

Signed-off-by: Chris Hesterman <[email protected]>

* Fix issues with restore specific indices

Signed-off-by: Chris Hesterman <[email protected]>

Implement first 4 Advanced restore options functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing for snapshots

Signed-off-by: Chris Hesterman <[email protected]>

Passing tests for create repo and create snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing Snapshots. Create repo and Create snapshot done

Signed-off-by: Chris Hesterman <[email protected]>

* Implement add_prefix functionality for snapshot restore

Signed-off-by: Chris Hesterman <[email protected]>

* Implement rename indices option for restore snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, unusted variables in SnapshotFlyout, SMservice

Signed-off-by: Chris Hesterman <[email protected]>

* Add full stop to help text/errors, add RESTORE_OPTIONS enum

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder examples to rename options, add line breaks to help text

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on custom index settings, ignore index settings

Signed-off-by: Chris Hesterman <[email protected]>

* Implement custom index settings functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Successfully implement/debug custom index settings/ignore index settings.

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on IndexList component, using cat.index.

Signed-off-by: Chris Hesterman <[email protected]>

* IndexList with pagination fully functional, todo: styling

Signed-off-by: Chris Hesterman <[email protected]>

* Add RestoreActivitiesPanel component folder, files (starter)

Signed-off-by: Chris Hesterman <[email protected]>

* Complete IndexList with pagination, sorting.

Signed-off-by: Chris Hesterman <[email protected]>

* Add maxWidth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]

* Implement tabs on Snapshots page: Snapshots, Restore activities...

Signed-off-by: Chris Hesterman <[email protected]>

Implement skeleton Restore activities panel, panel switching in Snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on catIndexRecovery, TODO - debug

Signed-off-by: Chris Hesterman <[email protected]>

* Fix syntax bug - server/services/SnapshotManagementService.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Resolved some errors, getting a response but not correct response.

Signed-off-by: Chris Hesterman <[email protected]>

* Add back line 20 in rollups_spec, required by changes in 2.3 release.

Signed-off-by: Chris Hesterman <[email protected]>

* Implement code to use Index Recovery api. successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress extracting data and displaying in Restore activities

Signed-off-by: Chris Hesterman <[email protected]>

* Implement Restore Activities with self updating until restore done

Signed-off-by: Chris Hesterman <[email protected]>

* Add clickable indexes link and hello world click handler

Signed-off-by: Chris Hesterman <[email protected]>

* Add toast if no snapshot selected upon restore activities click

Signed-off-by: Chris Hesterman <[email protected]>

Add empty flyout where restoring indices will be listed

Signed-off-by: Chris Hesterman <[email protected]>

* Change danger toast to warning when no snapshot selected

Signed-off-by: Chris Hesterman <[email protected]>

* Fix bug when both custom settings and ignore settings chosen

Signed-off-by: Chris Hesterman <[email protected]>

* Add refresh button to restore activities page, remove auto refreshing

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused getRepos func, add repo prop, trim state in RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add increment to 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Remove index settings from options if none entered, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in help text, use url from constants.

Signed-off-by: Chris Hesterman <[email protected]>

* Create CatSnapshotIndex in server/models/interfaces, apply in IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in IndexList, add CatSnapshotIndex interface

Signed-off-by: Chris Hesterman <[email protected]>

* Changes to RestoreActivitesPanel to prep for listing indice

Signed-off-by: Chris Hesterman <[email protected]>

* Re do merge commit - forgot to save file.

Signed-off-by: Chris Hesterman <[email protected]>

* Snapshots testing in progress

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress, cypress testing

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit testing for AddPrefixInput, RenameInput components

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRenameOptions component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRestoreOption component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotIndicesInput component

Signed-off-by: Chris Hesterman <[email protected]>

* Change 'Indices' to 'Index' if only 1 index.

Signed-off-by: Chris Hesterman <[email protected]>

* Replace anchor tags with EuiLinks set to external, rename options

Signed-off-by: Chris Hesterman <[email protected]>

* Change anchor tags to EuiLinks, IndexSettings

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel attribute to EuiLink, IndexSettingsInput

Signed-off-by: Chris Hesterman <[email protected]>

* Auto populate prefix field initially with "restored_"

Signed-off-by: Chris Hesterman <[email protected]>

* Change Restore button to color="primary" (blue)

Signed-off-by: Chris Hesterman <[email protected]>

* Make flyout close on restore, direct user to activities tab

Signed-off-by: Chris Hesterman <[email protected]>

* Title case flyout 'status', use EuiHealth for status color dot

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status check until 'DONE', RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status update until 'SUCCESS', Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Change tab implementation to be consistent with other plugins

Signed-off-by: Chris Hesterman <[email protected]>

* Minor text and styling fixes, Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Fix styling to match main Snapshot page, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Update text to match mocks in Snapshots, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Pre fill rename inputs, prefix input with default values from mock

Signed-off-by: Chris Hesterman <[email protected]>

* Change to title case for status in Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Add warning banner if snapshot is partial, with checkbox to allow

Signed-off-by: Chris Hesterman <[email protected]>

* Fix behavior of IndexList, include size when active, else unknown

Signed-off-by: Chris Hesterman <[email protected]>

* Functioning start/stop times in RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

Accurate listing of indices being restored from snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Restore start/stop working. Auto updating working.

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiHealth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore monitoring, finally error free

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on restore/delete buttons correctly disabled edge cases

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiOverlayMask when RestoreSnapshotFlyout active

Signed-off-by: Chris Hesterman <[email protected]>

* Create user friendly error toasts with button to full error

Signed-off-by: Chris Hesterman <[email protected]>

* Direct user to browser console for full error from error toasts

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore success toast with button. Close

Signed-off-by: Chris Hesterman <[email protected]>

* Custom restore success toast with button to activities panel done

Signed-off-by: Chris Hesterman <[email protected]>

* Created custom error toast. Need to debug.

Signed-off-by: Chris Hesterman <[email protected]>

* Custom error and success toasts fully functional and error free.

Signed-off-by: Chris Hesterman <[email protected]>

* Add and debug Index Settings portion of Advanced Options. Successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove stray console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Add, update jest and cypress testing for snapshots & restore snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Save small change snapshots_spec, forgot before prev commit

Signed-off-by: Chris Hesterman <[email protected]>

* Version bump 2.3.0 to 2.3 1

Signed-off-by: Chris Hesterman <[email protected]>

* Add version bump 2.3.1 for OS in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Remove 2.3.1 bump

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.3 to 2.3.0 cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Change OSDB version to 2.3.1, opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.4 to 2.4.0 opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Update for 2.4

Signed-off-by: Chris Hesterman <[email protected]>

* Update help text, Snapshots.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Remove Total size column from IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Disable restore if partial snapshot but not checked in banner

Signed-off-by: Chris Hesterman <[email protected]>

Remove total size column in indexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add status code and code meaning to toasts, error modal

Signed-off-by: Chris Hesterman <[email protected]>

* Progress making Restore activities panel independent

Signed-off-by: Chris Hesterman <[email protected]>

* RestoreActivitiesPanel no longer needs selected snapshot to access

Signed-off-by: Chris Hesterman <[email protected]>

* Clean up unused code,console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Modify error toasts to be more user friendly

Signed-off-by: Chris Hesterman <[email protected]>

* Handle bad regex input, handle bad JSON input, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add check and toast for no indices selected, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, console log.

Signed-off-by: Chris Hesterman <[email protected]>

* Small style changes, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve one missed conflict from previous merge

Signed-off-by: Chris Hesterman <[email protected]>

* Update snapshots_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unneeded cy.wait, snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Fix small bug with refresh button, Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Remove conflicts in server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused prop"ignore", change ternary to if() in toast helper

Signed-off-by: Chris Hesterman <[email protected]>

* Change label text styling for radios and checkboxes in flyout

Signed-off-by: Chris Hesterman <[email protected]>

* Create checkBoxLabel component in helper.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots for unit tests.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove default close button from Restore activities/indiceslist

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]
(cherry picked from commit 58b88b5)

Co-authored-by: Chris Hesterman <[email protected]>
SuZhou-Joe added a commit that referenced this pull request Dec 22, 2022
* Restore activities panel, monitoring restore progress, styling (#294) (#296)

* Bumping 2.x branch from version 2.1 to 2.2. (#218)

* Bumping 2.x branch from version 2.1 to 2.2. Bumped terser version to 4.8.1 to address CVE.

Signed-off-by: AWSHurneyt <[email protected]>

* Drafted `2.2` release notes.

Signed-off-by: AWSHurneyt <[email protected]>

* Drafted `2.2` release notes.

Signed-off-by: AWSHurneyt <[email protected]>

* Updated rollup help text. (#220) (#221)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 4821889d37b5cd4884f4571d41960d9362d263a4)

Co-authored-by: AWSHurneyt <[email protected]>

* Amended 2.2 release notes. (#222)

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored dependency used by test mock. Adjusted OSD version used by test workflows. (#229)

* Enabled unit and cypress test workflows on all branches. Adjusted OSD version used by unit and cypress test workflows to align with OSD branching strategy.

Signed-off-by: AWSHurneyt <[email protected]>

* Adjusted path for a dependency used by unit tests to align with migration from EUI to OUI.

Signed-off-by: AWSHurneyt <[email protected]>

Signed-off-by: AWSHurneyt <[email protected]>

* Bumped moment version to resolve dependabot alert. (#230) (#233)

Signed-off-by: AWSHurneyt <[email protected]>

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 20374a49199c1f036f01ad0c78d4128339e0c361)

Co-authored-by: AWSHurneyt <[email protected]>

* Change alignment of Snapshot Management panels in pages/Main/Main.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Unify vertical button alignment across panels, ContentPanel.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots, add ROUTE_STYLE variable

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder restore button to Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Version increment 2.2.1 (#235) (#239)

Signed-off-by: prudhvigodithi <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>

Signed-off-by: prudhvigodithi <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
Co-authored-by: Prudhvi Godithi <[email protected]>

* Comment out line 20 rollups_spec.js in cypress/integration/

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused code and comment cypress/integration/rollups_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Starting adaptation/use of existing code for Restore functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Adapt Snapshots.tsx to include RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int

Signed-off-by: Chris Hesterman <[email protected]>

* Implement RestoreSnapshotFlyout open/close

Signed-off-by: Chris Hesterman <[email protected]>

* Make Snapshot name appear on RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add/adapt restoreSnapshot to server/SnapshotManagementService

Signed-off-by: Chris Hesterman <[email protected]>

* Add route for restoreSnapshot in server/routes.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Rudimentary restore from snapshot functionality reached, buggy

Signed-off-by: Chris Hesterman <[email protected]>

* Fix index list-snapshot restore, restrict restore to single selection

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, commented out code

Signed-off-by: Chris Hesterman <[email protected]>

* Create Advanced options accordion for Snapshot restore.

Signed-off-by: Chris Hesterman <[email protected]>

Currently only visually functional. TODO - make it apply the options

Signed-off-by: Chris Hesterman <[email protected]>

* Add initial restore/rename options to ui. Only visual functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve radio button events not firing

Signed-off-by: Chris Hesterman <[email protected]>

Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions

Signed-off-by: Chris Hesterman <[email protected]>

Move 'restore' button between 'delete' and 'take snapshot'

Signed-off-by: Chris Hesterman <[email protected]>

Set default rename option to 'add prefix'

Signed-off-by: Chris Hesterman <[email protected]>

* Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions

Signed-off-by: Chris Hesterman <[email protected]>

* Fix issues with restore specific indices

Signed-off-by: Chris Hesterman <[email protected]>

Implement first 4 Advanced restore options functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing for snapshots

Signed-off-by: Chris Hesterman <[email protected]>

Passing tests for create repo and create snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing Snapshots. Create repo and Create snapshot done

Signed-off-by: Chris Hesterman <[email protected]>

* Implement add_prefix functionality for snapshot restore

Signed-off-by: Chris Hesterman <[email protected]>

* Implement rename indices option for restore snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, unusted variables in SnapshotFlyout, SMservice

Signed-off-by: Chris Hesterman <[email protected]>

* Add full stop to help text/errors, add RESTORE_OPTIONS enum

Signed-off-by: Chris Hesterman <[email protected]>

* Removed the extra forward slash leading to a non-existing documentation (#231) (#244)

* Change alignment of Snapshot Management panels in pages/Main/Main.tsx (#236) (#241)

* Version increment 2.3.0 (#247)

* Add RestoreActivitiesPanel component folder, files (starter)

Signed-off-by: Chris Hesterman <[email protected]>

* Implement tabs on Snapshots page: Snapshots, Restore activities...

Signed-off-by: Chris Hesterman <[email protected]>

Implement skeleton Restore activities panel, panel switching in Snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on catIndexRecovery, TODO - debug

Signed-off-by: Chris Hesterman <[email protected]>

* Fix syntax bug - server/services/SnapshotManagementService.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Resolved some errors, getting a response but not correct response.

Signed-off-by: Chris Hesterman <[email protected]>

* Add back line 20 in rollups_spec, required by changes in 2.3 release.

Signed-off-by: Chris Hesterman <[email protected]>

* Implement code to use Index Recovery api. successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress extracting data and displaying in Restore activities

Signed-off-by: Chris Hesterman <[email protected]>

* Implement Restore Activities with self updating until restore done

Signed-off-by: Chris Hesterman <[email protected]>

* Add clickable indexes link and hello world click handler

Signed-off-by: Chris Hesterman <[email protected]>

* Add toast if no snapshot selected upon restore activities click

Signed-off-by: Chris Hesterman <[email protected]>

Add empty flyout where restoring indices will be listed

Signed-off-by: Chris Hesterman <[email protected]>

* Change danger toast to warning when no snapshot selected

Signed-off-by: Chris Hesterman <[email protected]>

* Add refresh button to restore activities page, remove auto refreshing

Signed-off-by: Chris Hesterman <[email protected]>

* Added release notes for 2.3 (#250) (#254)

* Added release notes for 2.3

Signed-off-by: Chris Hesterman <[email protected]>

* Remove commit 221, move 229 to Maintenance, add 250 to Documentation

Signed-off-by: Chris Hesterman <[email protected]>

* Move 230 to Maintenance, 229 back to Bug fixes

Signed-off-by: Chris Hesterman <[email protected]>

* Move 229 back to Maintenance

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
(cherry picked from commit 248a2fe16d05a307837107419cbc4de8d765b6a7)
Signed-off-by: Angie Zhang <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Angie Zhang <[email protected]>
Co-authored-by: phestecAMZN <[email protected]>

* Remove unused getRepos func, add repo prop, trim state in RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add increment to 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Changes to RestoreActivitesPanel to prep for listing indice

Signed-off-by: Chris Hesterman <[email protected]>

* Snapshots testing in progress

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress, cypress testing

Signed-off-by: Chris Hesterman <[email protected]>

* 2.x _2.3 release notes, added 's' to 'Enhancement' header (#259)

* Version increament 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Update OSD version in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Add 2.3 release notes, added 's' to 'Enhancement' header

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit testing for AddPrefixInput, RenameInput components

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRenameOptions component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRestoreOption component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotIndicesInput component

Signed-off-by: Chris Hesterman <[email protected]>

* Change 'Indices' to 'Index' if only 1 index.

Signed-off-by: Chris Hesterman <[email protected]>

* Auto populate prefix field initially with "restored_"

Signed-off-by: Chris Hesterman <[email protected]>

* Change Restore button to color="primary" (blue)

Signed-off-by: Chris Hesterman <[email protected]>

* Version bump 2.3.0 to 2.3 1

Signed-off-by: Chris Hesterman <[email protected]>

* Add version bump 2.3.1 for OS in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Remove 2.3.1 bump

Signed-off-by: Chris Hesterman <[email protected]>

* Small mods to rollups_spec and snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Backport  #276 to 2.x, Snapshot restore - basic restore functionality (#279)

* Version increament 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Update OSD version in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Snapshot Restore, basic restore functionality with basic options. Initial PR (#276)

* Change alignment of Snapshot Management panels in pages/Main/Main.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Unify vertical button alignment across panels, ContentPanel.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots, add ROUTE_STYLE variable

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder restore button to Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Comment out line 20 rollups_spec.js in cypress/integration/

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused code and comment cypress/integration/rollups_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Starting adaptation/use of existing code for Restore functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Adapt Snapshots.tsx to include RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int

Signed-off-by: Chris Hesterman <[email protected]>

* Implement RestoreSnapshotFlyout open/close

Signed-off-by: Chris Hesterman <[email protected]>

* Make Snapshot name appear on RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add/adapt restoreSnapshot to server/SnapshotManagementService

Signed-off-by: Chris Hesterman <[email protected]>

* Add route for restoreSnapshot in server/routes.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Rudimentary restore from snapshot functionality reached, buggy

Signed-off-by: Chris Hesterman <[email protected]>

* Fix index list-snapshot restore, restrict restore to single selection

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, commented out code

Signed-off-by: Chris Hesterman <[email protected]>

* Create Advanced options accordion for Snapshot restore.

Signed-off-by: Chris Hesterman <[email protected]>

Currently only visually functional. TODO - make it apply the options

Signed-off-by: Chris Hesterman <[email protected]>

* Add initial restore/rename options to ui. Only visual functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve radio button events not firing

Signed-off-by: Chris Hesterman <[email protected]>

Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions

Signed-off-by: Chris Hesterman <[email protected]>

Move 'restore' button between 'delete' and 'take snapshot'

Signed-off-by: Chris Hesterman <[email protected]>

Set default rename option to 'add prefix'

Signed-off-by: Chris Hesterman <[email protected]>

* Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions

Signed-off-by: Chris Hesterman <[email protected]>

* Fix issues with restore specific indices

Signed-off-by: Chris Hesterman <[email protected]>

Implement first 4 Advanced restore options functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing for snapshots

Signed-off-by: Chris Hesterman <[email protected]>

Passing tests for create repo and create snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing Snapshots. Create repo and Create snapshot done

Signed-off-by: Chris Hesterman <[email protected]>

* Implement add_prefix functionality for snapshot restore

Signed-off-by: Chris Hesterman <[email protected]>

* Implement rename indices option for restore snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, unusted variables in SnapshotFlyout, SMservice

Signed-off-by: Chris Hesterman <[email protected]>

* Add full stop to help text/errors, add RESTORE_OPTIONS enum

Signed-off-by: Chris Hesterman <[email protected]>

* Add back line 20 in rollups_spec, required by changes in 2.3 release.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused getRepos func, add repo prop, trim state in RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add increment to 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.3 to 2.3.0, cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Comment out line 20 rollups_spec.js causing error in PR E2E

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.2 to 2.3 unit-tests-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Uncomment line 19, rollups_spec.js to attempt E2E success on github

Signed-off-by: Chris Hesterman <[email protected]>

* Fix url, change "Sample" to "sample" rollups_spec lines 17, 21

Signed-off-by: Chris Hesterman <[email protected]>

* Change "sample data" to "Add data" rollops_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

All of these variations pass seamlessly when run locally.

Signed-off-by: Chris Hesterman <[email protected]>

* Add 10s wait line19, rollups_spec to help find button next step

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
(cherry picked from commit f7db4af624d2a8665856ab7df6bee85299193777)

* Change 2.3 to 2.3.0, cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.3 to 2.3.0 in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Select indices individually to fix test, line62, snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Remove vertical space, snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Backport - 2.x => 2.4 (#286)

* Bump 2.x to 2.4

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.4 to 2.4.0 opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Update 2.4, TODO rollups_spec, remove 'wait' when possible snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Small changes to AddPrefixInput.test, opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Changes in response to comments

Signed-off-by: Chris Hesterman <[email protected]>

* Add comment to assist reader, RestoreActivitiesPanel

Signed-off-by: Chris Hesterman <[email protected]>

* Replace '!' with '?', line 31 RestoreActivitiesPanel

Signed-off-by: Chris Hesterman <[email protected]>

* Add typing to RestoreActivitiesPanel FC

Signed-off-by: Chris Hesterman <[email protected]>

* Memoize actions, RestoreActivitiesPanel

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: prudhvigodithi <[email protected]>
Signed-off-by: Angie Zhang <[email protected]>
Co-authored-by: AWSHurneyt <[email protected]>
Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
Co-authored-by: Prudhvi Godithi <[email protected]>
Co-authored-by: Angie Zhang <[email protected]>
(cherry picked from commit 233e52c4df51af0d454ccd8198c8f341674beb6f)

Co-authored-by: phestecAMZN <[email protected]>

* Progress auto refreshing restore status, adding indexList (#297) (#318)

* Change alignment of Snapshot Management panels in pages/Main/Main.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Unify vertical button alignment across panels, ContentPanel.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots, add ROUTE_STYLE variable

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder restore button to Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Comment out line 20 rollups_spec.js in cypress/integration/

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused code and comment cypress/integration/rollups_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Starting adaptation/use of existing code for Restore functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Adapt Snapshots.tsx to include RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int

Signed-off-by: Chris Hesterman <[email protected]>

* Implement RestoreSnapshotFlyout open/close

Signed-off-by: Chris Hesterman <[email protected]>

* Make Snapshot name appear on RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add/adapt restoreSnapshot to server/SnapshotManagementService

Signed-off-by: Chris Hesterman <[email protected]>

* Add route for restoreSnapshot in server/routes.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Rudimentary restore from snapshot functionality reached, buggy

Signed-off-by: Chris Hesterman <[email protected]>

* Fix index list-snapshot restore, restrict restore to single selection

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, commented out code

Signed-off-by: Chris Hesterman <[email protected]>

* Create Advanced options accordion for Snapshot restore.

Signed-off-by: Chris Hesterman <[email protected]>

Currently only visually functional. TODO - make it apply the options

Signed-off-by: Chris Hesterman <[email protected]>

* Add initial restore/rename options to ui. Only visual functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve radio button events not firing

Signed-off-by: Chris Hesterman <[email protected]>

Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions

Signed-off-by: Chris Hesterman <[email protected]>

Move 'restore' button between 'delete' and 'take snapshot'

Signed-off-by: Chris Hesterman <[email protected]>

Set default rename option to 'add prefix'

Signed-off-by: Chris Hesterman <[email protected]>

* Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions

Signed-off-by: Chris Hesterman <[email protected]>

* Fix issues with restore specific indices

Signed-off-by: Chris Hesterman <[email protected]>

Implement first 4 Advanced restore options functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing for snapshots

Signed-off-by: Chris Hesterman <[email protected]>

Passing tests for create repo and create snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing Snapshots. Create repo and Create snapshot done

Signed-off-by: Chris Hesterman <[email protected]>

* Implement add_prefix functionality for snapshot restore

Signed-off-by: Chris Hesterman <[email protected]>

* Implement rename indices option for restore snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, unusted variables in SnapshotFlyout, SMservice

Signed-off-by: Chris Hesterman <[email protected]>

* Add full stop to help text/errors, add RESTORE_OPTIONS enum

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on IndexList component, using cat.index.

Signed-off-by: Chris Hesterman <[email protected]>

* IndexList with pagination fully functional, todo: styling

Signed-off-by: Chris Hesterman <[email protected]>

* Add RestoreActivitiesPanel component folder, files (starter)

Signed-off-by: Chris Hesterman <[email protected]>

* Complete IndexList with pagination, sorting.

Signed-off-by: Chris Hesterman <[email protected]>

* Add maxWidth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]

* Implement tabs on Snapshots page: Snapshots, Restore activities...

Signed-off-by: Chris Hesterman <[email protected]>

Implement skeleton Restore activities panel, panel switching in Snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on catIndexRecovery, TODO - debug

Signed-off-by: Chris Hesterman <[email protected]>

* Fix syntax bug - server/services/SnapshotManagementService.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Resolved some errors, getting a response but not correct response.

Signed-off-by: Chris Hesterman <[email protected]>

* Add back line 20 in rollups_spec, required by changes in 2.3 release.

Signed-off-by: Chris Hesterman <[email protected]>

* Implement code to use Index Recovery api. successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress extracting data and displaying in Restore activities

Signed-off-by: Chris Hesterman <[email protected]>

* Implement Restore Activities with self updating until restore done

Signed-off-by: Chris Hesterman <[email protected]>

* Add clickable indexes link and hello world click handler

Signed-off-by: Chris Hesterman <[email protected]>

* Add toast if no snapshot selected upon restore activities click

Signed-off-by: Chris Hesterman <[email protected]>

Add empty flyout where restoring indices will be listed

Signed-off-by: Chris Hesterman <[email protected]>

* Change danger toast to warning when no snapshot selected

Signed-off-by: Chris Hesterman <[email protected]>

* Add refresh button to restore activities page, remove auto refreshing

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused getRepos func, add repo prop, trim state in RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add increment to 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Create CatSnapshotIndex in server/models/interfaces, apply in IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Changes to RestoreActivitesPanel to prep for listing indice

Signed-off-by: Chris Hesterman <[email protected]>

* Re do merge commit - forgot to save file.

Signed-off-by: Chris Hesterman <[email protected]>

* Snapshots testing in progress

Signed-off-by: Chris Hesterman <[email protected]>

* Change 'Indices' to 'Index' if only 1 index.

Signed-off-by: Chris Hesterman <[email protected]>

* Auto populate prefix field initially with "restored_"

Signed-off-by: Chris Hesterman <[email protected]>

* Change Restore button to color="primary" (blue)

Signed-off-by: Chris Hesterman <[email protected]>

* Make flyout close on restore, direct user to activities tab

Signed-off-by: Chris Hesterman <[email protected]>

* Title case flyout 'status', use EuiHealth for status color dot

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status check until 'DONE', RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status update until 'SUCCESS', Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Change tab implementation to be consistent with other plugins

Signed-off-by: Chris Hesterman <[email protected]>

* Minor text and styling fixes, Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Fix styling to match main Snapshot page, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Update text to match mocks in Snapshots, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Change to title case for status in Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Fix behavior of IndexList, include size when active, else unknown

Signed-off-by: Chris Hesterman <[email protected]>

* Functioning start/stop times in RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

Accurate listing of indices being restored from snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Restore start/stop working. Auto updating working.

Signed-off-by: Chris Hesterman <[email protected]>

* Version bump 2.3.0 to 2.3 1

Signed-off-by: Chris Hesterman <[email protected]>

* Add version bump 2.3.1 for OS in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Remove 2.3.1 bump

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.3 to 2.3.0 cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Select indices individually to fix test, line62 snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Change "Sample" to "sample", rollups_spec line20

Signed-off-by: Chris Hesterman <[email protected]>

* Add 5s wait line 19 rollups_spec to wait for page load

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.4 to 2.4.0 opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve 1 leftover merge conflict, snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Fix one test which is newer than code at this point.

Signed-off-by: Chris Hesterman <[email protected]>

* Update AddPrefixInput.test for pre populated text field

Signed-off-by: Chris Hesterman <[email protected]>

* Remove comment from AddPrefixInput.test

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unneeded new lines, AddPrefixInput.test

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unneeded cy.wait(), snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Add React.FC to RestoreActivitiesPanel

Signed-off-by: Chris Hesterman <[email protected]>

* Remove commented code Snapshots.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console log from Snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Change let to const - RestoreSnapshotFlyout/getSnapshotIndices

Signed-off-by: Chris Hesterman <[email protected]>

* Simplify conditional rendering, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]
(cherry picked from commit fa09afb6ddf577382ef1f8508ec521003be5ba72)

Co-authored-by: phestecAMZN <[email protected]>

* Complete snapshot restore, mvp for 2.4 (#315) (#326)

* Change alignment of Snapshot Management panels in pages/Main/Main.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Unify vertical button alignment across panels, ContentPanel.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots, add ROUTE_STYLE variable

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder restore button to Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Comment out line 20 rollups_spec.js in cypress/integration/

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused code and comment cypress/integration/rollups_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Starting adaptation/use of existing code for Restore functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Adapt Snapshots.tsx to include RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int

Signed-off-by: Chris Hesterman <[email protected]>

* Implement RestoreSnapshotFlyout open/close

Signed-off-by: Chris Hesterman <[email protected]>

* Make Snapshot name appear on RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add/adapt restoreSnapshot to server/SnapshotManagementService

Signed-off-by: Chris Hesterman <[email protected]>

* Add route for restoreSnapshot in server/routes.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Rudimentary restore from snapshot functionality reached, buggy

Signed-off-by: Chris Hesterman <[email protected]>

* Fix index list-snapshot restore, restrict restore to single selection

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, commented out code

Signed-off-by: Chris Hesterman <[email protected]>

* Create Advanced options accordion for Snapshot restore.

Signed-off-by: Chris Hesterman <[email protected]>

Currently only visually functional. TODO - make it apply the options

Signed-off-by: Chris Hesterman <[email protected]>

* Add initial restore/rename options to ui. Only visual functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve radio button events not firing

Signed-off-by: Chris Hesterman <[email protected]>

Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions

Signed-off-by: Chris Hesterman <[email protected]>

Move 'restore' button between 'delete' and 'take snapshot'

Signed-off-by: Chris Hesterman <[email protected]>

Set default rename option to 'add prefix'

Signed-off-by: Chris Hesterman <[email protected]>

* Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions

Signed-off-by: Chris Hesterman <[email protected]>

* Fix issues with restore specific indices

Signed-off-by: Chris Hesterman <[email protected]>

Implement first 4 Advanced restore options functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing for snapshots

Signed-off-by: Chris Hesterman <[email protected]>

Passing tests for create repo and create snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing Snapshots. Create repo and Create snapshot done

Signed-off-by: Chris Hesterman <[email protected]>

* Implement add_prefix functionality for snapshot restore

Signed-off-by: Chris Hesterman <[email protected]>

* Implement rename indices option for restore snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, unusted variables in SnapshotFlyout, SMservice

Signed-off-by: Chris Hesterman <[email protected]>

* Add full stop to help text/errors, add RESTORE_OPTIONS enum

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder examples to rename options, add line breaks to help text

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on custom index settings, ignore index settings

Signed-off-by: Chris Hesterman <[email protected]>

* Implement custom index settings functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Successfully implement/debug custom index settings/ignore index settings.

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on IndexList component, using cat.index.

Signed-off-by: Chris Hesterman <[email protected]>

* IndexList with pagination fully functional, todo: styling

Signed-off-by: Chris Hesterman <[email protected]>

* Add RestoreActivitiesPanel component folder, files (starter)

Signed-off-by: Chris Hesterman <[email protected]>

* Complete IndexList with pagination, sorting.

Signed-off-by: Chris Hesterman <[email protected]>

* Add maxWidth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]

* Implement tabs on Snapshots page: Snapshots, Restore activities...

Signed-off-by: Chris Hesterman <[email protected]>

Implement skeleton Restore activities panel, panel switching in Snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on catIndexRecovery, TODO - debug

Signed-off-by: Chris Hesterman <[email protected]>

* Fix syntax bug - server/services/SnapshotManagementService.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Resolved some errors, getting a response but not correct response.

Signed-off-by: Chris Hesterman <[email protected]>

* Add back line 20 in rollups_spec, required by changes in 2.3 release.

Signed-off-by: Chris Hesterman <[email protected]>

* Implement code to use Index Recovery api. successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress extracting data and displaying in Restore activities

Signed-off-by: Chris Hesterman <[email protected]>

* Implement Restore Activities with self updating until restore done

Signed-off-by: Chris Hesterman <[email protected]>

* Add clickable indexes link and hello world click handler

Signed-off-by: Chris Hesterman <[email protected]>

* Add toast if no snapshot selected upon restore activities click

Signed-off-by: Chris Hesterman <[email protected]>

Add empty flyout where restoring indices will be listed

Signed-off-by: Chris Hesterman <[email protected]>

* Change danger toast to warning when no snapshot selected

Signed-off-by: Chris Hesterman <[email protected]>

* Fix bug when both custom settings and ignore settings chosen

Signed-off-by: Chris Hesterman <[email protected]>

* Add refresh button to restore activities page, remove auto refreshing

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused getRepos func, add repo prop, trim state in RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add increment to 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Remove index settings from options if none entered, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in help text, use url from constants.

Signed-off-by: Chris Hesterman <[email protected]>

* Create CatSnapshotIndex in server/models/interfaces, apply in IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in IndexList, add CatSnapshotIndex interface

Signed-off-by: Chris Hesterman <[email protected]>

* Changes to RestoreActivitesPanel to prep for listing indice

Signed-off-by: Chris Hesterman <[email protected]>

* Re do merge commit - forgot to save file.

Signed-off-by: Chris Hesterman <[email protected]>

* Snapshots testing in progress

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress, cypress testing

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit testing for AddPrefixInput, RenameInput components

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRenameOptions component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRestoreOption component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotIndicesInput component

Signed-off-by: Chris Hesterman <[email protected]>

* Change 'Indices' to 'Index' if only 1 index.

Signed-off-by: Chris Hesterman <[email protected]>

* Replace anchor tags with EuiLinks set to external, rename options

Signed-off-by: Chris Hesterman <[email protected]>

* Change anchor tags to EuiLinks, IndexSettings

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel attribute to EuiLink, IndexSettingsInput

Signed-off-by: Chris Hesterman <[email protected]>

* Auto populate prefix field initially with "restored_"

Signed-off-by: Chris Hesterman <[email protected]>

* Change Restore button to color="primary" (blue)

Signed-off-by: Chris Hesterman <[email protected]>

* Make flyout close on restore, direct user to activities tab

Signed-off-by: Chris Hesterman <[email protected]>

* Title case flyout 'status', use EuiHealth for status color dot

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status check until 'DONE', RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status update until 'SUCCESS', Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Change tab implementation to be consistent with other plugins

Signed-off-by: Chris Hesterman <[email protected]>

* Minor text and styling fixes, Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Fix styling to match main Snapshot page, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Update text to match mocks in Snapshots, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Pre fill rename inputs, prefix input with default values from mock

Signed-off-by: Chris Hesterman <[email protected]>

* Change to title case for status in Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Add warning banner if snapshot is partial, with checkbox to allow

Signed-off-by: Chris Hesterman <[email protected]>

* Fix behavior of IndexList, include size when active, else unknown

Signed-off-by: Chris Hesterman <[email protected]>

* Functioning start/stop times in RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

Accurate listing of indices being restored from snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Restore start/stop working. Auto updating working.

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiHealth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore monitoring, finally error free

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on restore/delete buttons correctly disabled edge cases

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiOverlayMask when RestoreSnapshotFlyout active

Signed-off-by: Chris Hesterman <[email protected]>

* Create user friendly error toasts with button to full error

Signed-off-by: Chris Hesterman <[email protected]>

* Direct user to browser console for full error from error toasts

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore success toast with button. Close

Signed-off-by: Chris Hesterman <[email protected]>

* Custom restore success toast with button to activities panel done

Signed-off-by: Chris Hesterman <[email protected]>

* Created custom error toast. Need to debug.

Signed-off-by: Chris Hesterman <[email protected]>

* Custom error and success toasts fully functional and error free.

Signed-off-by: Chris Hesterman <[email protected]>

* Add and debug Index Settings portion of Advanced Options. Successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove stray console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Add, update jest and cypress testing for snapshots & restore snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Save small change snapshots_spec, forgot before prev commit

Signed-off-by: Chris Hesterman <[email protected]>

* Version bump 2.3.0 to 2.3 1

Signed-off-by: Chris Hesterman <[email protected]>

* Add version bump 2.3.1 for OS in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Remove 2.3.1 bump

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.3 to 2.3.0 cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Change OSDB version to 2.3.1, opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.4 to 2.4.0 opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Update for 2.4

Signed-off-by: Chris Hesterman <[email protected]>

* Update help text, Snapshots.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Remove Total size column from IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Disable restore if partial snapshot but not checked in banner

Signed-off-by: Chris Hesterman <[email protected]>

Remove total size column in indexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add status code and code meaning to toasts, error modal

Signed-off-by: Chris Hesterman <[email protected]>

* Progress making Restore activities panel independent

Signed-off-by: Chris Hesterman <[email protected]>

* RestoreActivitiesPanel no longer needs selected snapshot to access

Signed-off-by: Chris Hesterman <[email protected]>

* Clean up unused code,console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Modify error toasts to be more user friendly

Signed-off-by: Chris Hesterman <[email protected]>

* Handle bad regex input, handle bad JSON input, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add check and toast for no indices selected, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, console log.

Signed-off-by: Chris Hesterman <[email protected]>

* Small style changes, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve one missed conflict from previous merge

Signed-off-by: Chris Hesterman <[email protected]>

* Update snapshots_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unneeded cy.wait, snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Fix small bug with refresh button, Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Remove conflicts in server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused prop"ignore", change ternary to if() in toast helper

Signed-off-by: Chris Hesterman <[email protected]>

* Change label text styling for radios and checkboxes in flyout

Signed-off-by: Chris Hesterman <[email protected]>

* Create checkBoxLabel component in helper.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots for unit tests.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove default close button from Restore activities/indiceslist

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]
(cherry picked from commit 58b88b5891532b5d8bf9c7ba1395edd6e72619bb)

Co-authored-by: Chris Hesterman <[email protected]>

* Add windows mac OS in CI (#325) (#327)

Signed-off-by: bowenlan-amzn <[email protected]>

Signed-off-by: bowenlan-amzn <[email protected]>
(cherry picked from commit 05873bae1def9f7f243ae792d9937cda6773dadd)

Co-authored-by: bowenlan-amzn <[email protected]>

* Incorporate requested UX changes to Snapshot Restore (#333) (#337)

* Change alignment of Snapshot Management panels in pages/Main/Main.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Unify vertical button alignment across panels, ContentPanel.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots, add ROUTE_STYLE variable

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder restore button to Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Comment out line 20 rollups_spec.js in cypress/integration/

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused code and comment cypress/integration/rollups_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Starting adaptation/use of existing code for Restore functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Adapt Snapshots.tsx to include RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int

Signed-off-by: Chris Hesterman <[email protected]>

* Implement RestoreSnapshotFlyout open/close

Signed-off-by: Chris Hesterman <[email protected]>

* Make Snapshot name appear on RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add/adapt restoreSnapshot to server/SnapshotManagementService

Signed-off-by: Chris Hesterman <[email protected]>

* Add route for restoreSnapshot in server/routes.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Rudimentary restore from snapshot functionality reached, buggy

Signed-off-by: Chris Hesterman <[email protected]>

* Fix index list-snapshot restore, restrict restore to single selection

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, commented out code

Signed-off-by: Chris Hesterman <[email protected]>

* Create Advanced options accordion for Snapshot restore.

Signed-off-by: Chris Hesterman <[email protected]>

Currently only visually functional. TODO - make it apply the options

Signed-off-by: Chris Hesterman <[email protected]>

* Add initial restore/rename options to ui. Only visual functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve radio button events not firing

Signed-off-by: Chris Hesterman <[email protected]>

Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions

Signed-off-by: Chris Hesterman <[email protected]>

Move 'restore' button between 'delete' and 'take snapshot'

Signed-off-by: Chris Hesterman <[email protected]>

Set default rename option to 'add prefix'

Signed-off-by: Chris Hesterman <[email protected]>

* Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions

Signed-off-by: Chris Hesterman <[email protected]>

* Fix issues with restore specific indices

Signed-off-by: Chris Hesterman <[email protected]>

Implement first 4 Advanced restore options functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing for snapshots

Signed-off-by: Chris Hesterman <[email protected]>

Passing tests for create repo and create snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Begin cypress testing Snapshots. Create repo and Create snapshot done

Signed-off-by: Chris Hesterman <[email protected]>

* Implement add_prefix functionality for snapshot restore

Signed-off-by: Chris Hesterman <[email protected]>

* Implement rename indices option for restore snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Remove console.logs, unusted variables in SnapshotFlyout, SMservice

Signed-off-by: Chris Hesterman <[email protected]>

* Add full stop to help text/errors, add RESTORE_OPTIONS enum

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder examples to rename options, add line breaks to help text

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on custom index settings, ignore index settings

Signed-off-by: Chris Hesterman <[email protected]>

* Implement custom index settings functionality

Signed-off-by: Chris Hesterman <[email protected]>

* Successfully implement/debug custom index settings/ignore index settings.

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on IndexList component, using cat.index.

Signed-off-by: Chris Hesterman <[email protected]>

* IndexList with pagination fully functional, todo: styling

Signed-off-by: Chris Hesterman <[email protected]>

* Add RestoreActivitiesPanel component folder, files (starter)

Signed-off-by: Chris Hesterman <[email protected]>

* Complete IndexList with pagination, sorting.

Signed-off-by: Chris Hesterman <[email protected]>

* Add maxWidth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]

* Implement tabs on Snapshots page: Snapshots, Restore activities...

Signed-off-by: Chris Hesterman <[email protected]>

Implement skeleton Restore activities panel, panel switching in Snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on catIndexRecovery, TODO - debug

Signed-off-by: Chris Hesterman <[email protected]>

* Fix syntax bug - server/services/SnapshotManagementService.ts

Signed-off-by: Chris Hesterman <[email protected]>

* Resolved some errors, getting a response but not correct response.

Signed-off-by: Chris Hesterman <[email protected]>

* Add back line 20 in rollups_spec, required by changes in 2.3 release.

Signed-off-by: Chris Hesterman <[email protected]>

* Implement code to use Index Recovery api. successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress extracting data and displaying in Restore activities

Signed-off-by: Chris Hesterman <[email protected]>

* Implement Restore Activities with self updating until restore done

Signed-off-by: Chris Hesterman <[email protected]>

* Add clickable indexes link and hello world click handler

Signed-off-by: Chris Hesterman <[email protected]>

* Add toast if no snapshot selected upon restore activities click

Signed-off-by: Chris Hesterman <[email protected]>

Add empty flyout where restoring indices will be listed

Signed-off-by: Chris Hesterman <[email protected]>

* Change danger toast to warning when no snapshot selected

Signed-off-by: Chris Hesterman <[email protected]>

* Fix bug when both custom settings and ignore settings chosen

Signed-off-by: Chris Hesterman <[email protected]>

* Add refresh button to restore activities page, remove auto refreshing

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused getRepos func, add repo prop, trim state in RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add increment to 2.3.0

Signed-off-by: Chris Hesterman <[email protected]>

* Remove index settings from options if none entered, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in help text, use url from constants.

Signed-off-by: Chris Hesterman <[email protected]>

* Create CatSnapshotIndex in server/models/interfaces, apply in IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel="noopener noreferrer" to links in IndexList, add CatSnapshotIndex interface

Signed-off-by: Chris Hesterman <[email protected]>

* Changes to RestoreActivitesPanel to prep for listing indice

Signed-off-by: Chris Hesterman <[email protected]>

* Re do merge commit - forgot to save file.

Signed-off-by: Chris Hesterman <[email protected]>

* Snapshots testing in progress

Signed-off-by: Chris Hesterman <[email protected]>

* Current progress, cypress testing

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit testing for AddPrefixInput, RenameInput components

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRenameOptions component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotRestoreOption component

Signed-off-by: Chris Hesterman <[email protected]>

* Add unit tests for SnapshotIndicesInput component

Signed-off-by: Chris Hesterman <[email protected]>

* Change 'Indices' to 'Index' if only 1 index.

Signed-off-by: Chris Hesterman <[email protected]>

* Replace anchor tags with EuiLinks set to external, rename options

Signed-off-by: Chris Hesterman <[email protected]>

* Change anchor tags to EuiLinks, IndexSettings

Signed-off-by: Chris Hesterman <[email protected]>

* Add rel attribute to EuiLink, IndexSettingsInput

Signed-off-by: Chris Hesterman <[email protected]>

* Auto populate prefix field initially with "restored_"

Signed-off-by: Chris Hesterman <[email protected]>

* Change Restore button to color="primary" (blue)

Signed-off-by: Chris Hesterman <[email protected]>

* Make flyout close on restore, direct user to activities tab

Signed-off-by: Chris Hesterman <[email protected]>

* Title case flyout 'status', use EuiHealth for status color dot

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status check until 'DONE', RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

* Add auto status update until 'SUCCESS', Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Change tab implementation to be consistent with other plugins

Signed-off-by: Chris Hesterman <[email protected]>

* Minor text and styling fixes, Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Fix styling to match main Snapshot page, RestoreFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Update text to match mocks in Snapshots, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Pre fill rename inputs, prefix input with default values from mock

Signed-off-by: Chris Hesterman <[email protected]>

* Change to title case for status in Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Add warning banner if snapshot is partial, with checkbox to allow

Signed-off-by: Chris Hesterman <[email protected]>

* Fix behavior of IndexList, include size when active, else unknown

Signed-off-by: Chris Hesterman <[email protected]>

* Functioning start/stop times in RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

Accurate listing of indices being restored from snapshot

Signed-off-by: Chris Hesterman <[email protected]>

* Restore start/stop working. Auto updating working.

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiHealth to RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore monitoring, finally error free

Signed-off-by: Chris Hesterman <[email protected]>

* Progress on restore/delete buttons correctly disabled edge cases

Signed-off-by: Chris Hesterman <[email protected]>

* Add EuiOverlayMask when RestoreSnapshotFlyout active

Signed-off-by: Chris Hesterman <[email protected]>

* Create user friendly error toasts with button to full error

Signed-off-by: Chris Hesterman <[email protected]>

* Direct user to browser console for full error from error toasts

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with restore success toast with button. Close

Signed-off-by: Chris Hesterman <[email protected]>

* Custom restore success toast with button to activities panel done

Signed-off-by: Chris Hesterman <[email protected]>

* Created custom error toast. Need to debug.

Signed-off-by: Chris Hesterman <[email protected]>

* Custom error and success toasts fully functional and error free.

Signed-off-by: Chris Hesterman <[email protected]>

* Add and debug Index Settings portion of Advanced Options. Successful.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove stray console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Add, update jest and cypress testing for snapshots & restore snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Save small change snapshots_spec, forgot before prev commit

Signed-off-by: Chris Hesterman <[email protected]>

* Version bump 2.3.0 to 2.3 1

Signed-off-by: Chris Hesterman <[email protected]>

* Add version bump 2.3.1 for OS in cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Remove 2.3.1 bump

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.3 to 2.3.0 cypress-workflow.yml

Signed-off-by: Chris Hesterman <[email protected]>

* Change OSDB version to 2.3.1, opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Change 2.4 to 2.4.0 opensearch_dashboards.json

Signed-off-by: Chris Hesterman <[email protected]>

* Update for 2.4

Signed-off-by: Chris Hesterman <[email protected]>

* Update help text, Snapshots.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Remove Total size column from IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Disable restore if partial snapshot but not checked in banner

Signed-off-by: Chris Hesterman <[email protected]>

Remove total size column in indexList

Signed-off-by: Chris Hesterman <[email protected]>

* Add status code and code meaning to toasts, error modal

Signed-off-by: Chris Hesterman <[email protected]>

* Progress making Restore activities panel independent

Signed-off-by: Chris Hesterman <[email protected]>

* RestoreActivitiesPanel no longer needs selected snapshot to access

Signed-off-by: Chris Hesterman <[email protected]>

* Clean up unused code,console logs

Signed-off-by: Chris Hesterman <[email protected]>

* Modify error toasts to be more user friendly

Signed-off-by: Chris Hesterman <[email protected]>

* Handle bad regex input, handle bad JSON input, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Add check and toast for no indices selected, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused interface, console log.

Signed-off-by: Chris Hesterman <[email protected]>

* Small style changes, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Resolve one missed conflict from previous merge

Signed-off-by: Chris Hesterman <[email protected]>

* Update snapshots_spec.js

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unneeded cy.wait, snapshots_spec

Signed-off-by: Chris Hesterman <[email protected]>

* Fix small bug with refresh button, Restore activities panel

Signed-off-by: Chris Hesterman <[email protected]>

* Remove conflicts in server/models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove unused prop"ignore", change ternary to if() in toast helper

Signed-off-by: Chris Hesterman <[email protected]>

* Change label text styling for radios and checkboxes in flyout

Signed-off-by: Chris Hesterman <[email protected]>

* Create checkBoxLabel component in helper.jsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots for unit tests.

Signed-off-by: Chris Hesterman <[email protected]>

* Remove default close button from Restore activities/indiceslist

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with regex validation, testing restore fail in progressd

Signed-off-by: Chris Hesterman <[email protected]>

* Handle error case - bad connection - RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

* Implement status for every index being restored, add to Indexlist.

Signed-off-by: Chris Hesterman <[email protected]>

* Sort indexList alphabetically in RestoreActivities

Signed-off-by: Chris Hesterman <[email protected]>

Remove unneeded "getSnapshotIndices" method - RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Progress with form validation, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* All validations working on action click, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Refine validation ui on error, RestoreSnapshotFlyout

Signed-off-by: Chris Hesterman <[email protected]>

* Refine some toasts/errors

Signed-off-by: Chris Hesterman <[email protected]>

* Simplify toasts, make restore status more descriptive.

Signed-off-by: Chris Hesterman <[email protected]>

* Add interface "IndexItem", models/interfaces

Signed-off-by: Chris Hesterman <[email protected]>

* Remove missed console log, IndexList

Signed-off-by: Chris Hesterman <[email protected]>

* Update unit test snapshots

Signed-off-by: Chris Hesterman <[email protected]>

* Update snapshots_spec to account for recent changes

Signed-off-by: Chris Hesterman <[email protected]>

Signed-off-by: Chris Hesterman <[email protected]>
Signed-off-by: Chris Hesterman <[email protected]
(cherry picked from commit 4d16b12868ffbc1cebaca167d85318cdd54b38bd)

Co-authored-by: Chris Hesterman <[email protected]>

* Snapshot restore - various UI updates, input validation debugging (#338) (#341)

* Change alignment of Snapshot Management panels in pages/Main/Main.tsx
* Unify vertical button alignment across panels, ContentPanel.tsx
* Update jest snapshots, add ROUTE_STYLE variable
* Add placeholder restore button to Snapshots panel
* Comment out line 20 rollups_spec.js in cypress/integration/
* Remove unused code and comment cypress/integration/rollups_spec.js
* Starting adaptation/use of existing code for Restore functionality
* Adapt Snapshots.tsx to include RestoreSnapshotFlyout
* Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int
* Implement RestoreSnapshotFlyout open/close
* Make Snapshot name appear on RestoreSnapshotFlyout
* Add/adapt restoreSnapshot to server/SnapshotManagementService

Signed-off-by: Chris Hesterman <[email protected]>
Co-authored-by: Chris Hesterman <[email protected]>

* Minor bugfix to Restore Activities panel (#343) (#344)

* Change alignment of Snapshot Management panels in pages/Main/Main.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Unify vertical button alignment across panels, ContentPanel.tsx

Signed-off-by: Chris Hesterman <[email protected]>

* Update jest snapshots, add ROUTE_STYLE variable

Signed-off-by: Chris Hesterman <[email protected]>

* Add placeholder restore button to Snapshots panel

Signed-off-by: Chris Hesterman <[email protected]>

* Comment out line 20 rollups_spec.js in cypress/integration/

Signed-off-by: Chris Hesterman <[email protected]>
…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants