From 0ae56b3fd2914c34e2ee3d53e0424e304b1f8db8 Mon Sep 17 00:00:00 2001 From: Chris Hesterman Date: Fri, 4 Nov 2022 13:21:29 -0700 Subject: [PATCH] Add 2.4 release notes (#346) * Change alignment of Snapshot Management panels in pages/Main/Main.tsx Signed-off-by: Chris Hesterman * Unify vertical button alignment across panels, ContentPanel.tsx Signed-off-by: Chris Hesterman * Update jest snapshots, add ROUTE_STYLE variable Signed-off-by: Chris Hesterman * Add placeholder restore button to Snapshots panel Signed-off-by: Chris Hesterman * Comment out line 20 rollups_spec.js in cypress/integration/ Signed-off-by: Chris Hesterman * Remove unused code and comment cypress/integration/rollups_spec.js Signed-off-by: Chris Hesterman * Starting adaptation/use of existing code for Restore functionality Signed-off-by: Chris Hesterman * Adapt Snapshots.tsx to include RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Add restoreSnapshot method to SMservice,RestoreSnapshotResponse int Signed-off-by: Chris Hesterman * Implement RestoreSnapshotFlyout open/close Signed-off-by: Chris Hesterman * Make Snapshot name appear on RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Add/adapt restoreSnapshot to server/SnapshotManagementService Signed-off-by: Chris Hesterman * Add route for restoreSnapshot in server/routes.ts Signed-off-by: Chris Hesterman * Rudimentary restore from snapshot functionality reached, buggy Signed-off-by: Chris Hesterman * Fix index list-snapshot restore, restrict restore to single selection Signed-off-by: Chris Hesterman * Remove console.logs, commented out code Signed-off-by: Chris Hesterman * Create Advanced options accordion for Snapshot restore. Signed-off-by: Chris Hesterman Currently only visually functional. TODO - make it apply the options Signed-off-by: Chris Hesterman * Add initial restore/rename options to ui. Only visual functionality Signed-off-by: Chris Hesterman * Resolve radio button events not firing Signed-off-by: Chris Hesterman Split radio buttons into SnapshotRestoreOption and SnapshotRenameOptions Signed-off-by: Chris Hesterman Move 'restore' button between 'delete' and 'take snapshot' Signed-off-by: Chris Hesterman Set default rename option to 'add prefix' Signed-off-by: Chris Hesterman * Add AddPrefixInput, remove unused component RestoreSnapshotInitialOptions Signed-off-by: Chris Hesterman * Fix issues with restore specific indices Signed-off-by: Chris Hesterman Implement first 4 Advanced restore options functionality Signed-off-by: Chris Hesterman * Begin cypress testing for snapshots Signed-off-by: Chris Hesterman Passing tests for create repo and create snapshot Signed-off-by: Chris Hesterman * Begin cypress testing Snapshots. Create repo and Create snapshot done Signed-off-by: Chris Hesterman * Implement add_prefix functionality for snapshot restore Signed-off-by: Chris Hesterman * Implement rename indices option for restore snapshot Signed-off-by: Chris Hesterman * Remove console.logs, unusted variables in SnapshotFlyout, SMservice Signed-off-by: Chris Hesterman * Add full stop to help text/errors, add RESTORE_OPTIONS enum Signed-off-by: Chris Hesterman * Add placeholder examples to rename options, add line breaks to help text Signed-off-by: Chris Hesterman * Progress on custom index settings, ignore index settings Signed-off-by: Chris Hesterman * Implement custom index settings functionality Signed-off-by: Chris Hesterman * Successfully implement/debug custom index settings/ignore index settings. Signed-off-by: Chris Hesterman * Progress on IndexList component, using cat.index. Signed-off-by: Chris Hesterman * IndexList with pagination fully functional, todo: styling Signed-off-by: Chris Hesterman * Add RestoreActivitiesPanel component folder, files (starter) Signed-off-by: Chris Hesterman * Complete IndexList with pagination, sorting. Signed-off-by: Chris Hesterman * Add maxWidth to RestoreSnapshotFlyout Signed-off-by: Chris Hesterman Implement skeleton Restore activities panel, panel switching in Snapshots Signed-off-by: Chris Hesterman * Progress on catIndexRecovery, TODO - debug Signed-off-by: Chris Hesterman * Fix syntax bug - server/services/SnapshotManagementService.ts Signed-off-by: Chris Hesterman * Resolved some errors, getting a response but not correct response. Signed-off-by: Chris Hesterman * Add back line 20 in rollups_spec, required by changes in 2.3 release. Signed-off-by: Chris Hesterman * Implement code to use Index Recovery api. successful. Signed-off-by: Chris Hesterman * Current progress extracting data and displaying in Restore activities Signed-off-by: Chris Hesterman * Implement Restore Activities with self updating until restore done Signed-off-by: Chris Hesterman * Add clickable indexes link and hello world click handler Signed-off-by: Chris Hesterman * Add toast if no snapshot selected upon restore activities click Signed-off-by: Chris Hesterman Add empty flyout where restoring indices will be listed Signed-off-by: Chris Hesterman * Change danger toast to warning when no snapshot selected Signed-off-by: Chris Hesterman * Fix bug when both custom settings and ignore settings chosen Signed-off-by: Chris Hesterman * Add refresh button to restore activities page, remove auto refreshing Signed-off-by: Chris Hesterman * Remove unused getRepos func, add repo prop, trim state in RestoreFlyout Signed-off-by: Chris Hesterman * Add increment to 2.3.0 Signed-off-by: Chris Hesterman * Remove index settings from options if none entered, RestoreFlyout Signed-off-by: Chris Hesterman * Add rel="noopener noreferrer" to links in help text, use url from constants. Signed-off-by: Chris Hesterman * Create CatSnapshotIndex in server/models/interfaces, apply in IndexList Signed-off-by: Chris Hesterman * Add rel="noopener noreferrer" to links in IndexList, add CatSnapshotIndex interface Signed-off-by: Chris Hesterman * Changes to RestoreActivitesPanel to prep for listing indice Signed-off-by: Chris Hesterman * Re do merge commit - forgot to save file. Signed-off-by: Chris Hesterman * Snapshots testing in progress Signed-off-by: Chris Hesterman * Current progress, cypress testing Signed-off-by: Chris Hesterman * Add unit testing for AddPrefixInput, RenameInput components Signed-off-by: Chris Hesterman * Add unit tests for SnapshotRenameOptions component Signed-off-by: Chris Hesterman * Add unit tests for SnapshotRestoreOption component Signed-off-by: Chris Hesterman * Add unit tests for SnapshotIndicesInput component Signed-off-by: Chris Hesterman * Change 'Indices' to 'Index' if only 1 index. Signed-off-by: Chris Hesterman * Replace anchor tags with EuiLinks set to external, rename options Signed-off-by: Chris Hesterman * Change anchor tags to EuiLinks, IndexSettings Signed-off-by: Chris Hesterman * Add rel attribute to EuiLink, IndexSettingsInput Signed-off-by: Chris Hesterman * Auto populate prefix field initially with "restored_" Signed-off-by: Chris Hesterman * Change Restore button to color="primary" (blue) Signed-off-by: Chris Hesterman * Make flyout close on restore, direct user to activities tab Signed-off-by: Chris Hesterman * Title case flyout 'status', use EuiHealth for status color dot Signed-off-by: Chris Hesterman * Add auto status check until 'DONE', RestoreActivities Signed-off-by: Chris Hesterman * Add auto status update until 'SUCCESS', Snapshots panel Signed-off-by: Chris Hesterman * Change tab implementation to be consistent with other plugins Signed-off-by: Chris Hesterman * Minor text and styling fixes, Snapshots panel Signed-off-by: Chris Hesterman * Fix styling to match main Snapshot page, RestoreFlyout Signed-off-by: Chris Hesterman * Update text to match mocks in Snapshots, RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Pre fill rename inputs, prefix input with default values from mock Signed-off-by: Chris Hesterman * Change to title case for status in Restore activities panel Signed-off-by: Chris Hesterman * Add warning banner if snapshot is partial, with checkbox to allow Signed-off-by: Chris Hesterman * Fix behavior of IndexList, include size when active, else unknown Signed-off-by: Chris Hesterman * Functioning start/stop times in RestoreActivities Signed-off-by: Chris Hesterman Accurate listing of indices being restored from snapshot Signed-off-by: Chris Hesterman * Restore start/stop working. Auto updating working. Signed-off-by: Chris Hesterman * Add EuiHealth to RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Progress with restore monitoring, finally error free Signed-off-by: Chris Hesterman * Progress on restore/delete buttons correctly disabled edge cases Signed-off-by: Chris Hesterman * Add EuiOverlayMask when RestoreSnapshotFlyout active Signed-off-by: Chris Hesterman * Create user friendly error toasts with button to full error Signed-off-by: Chris Hesterman * Direct user to browser console for full error from error toasts Signed-off-by: Chris Hesterman * Progress with restore success toast with button. Close Signed-off-by: Chris Hesterman * Custom restore success toast with button to activities panel done Signed-off-by: Chris Hesterman * Created custom error toast. Need to debug. Signed-off-by: Chris Hesterman * Custom error and success toasts fully functional and error free. Signed-off-by: Chris Hesterman * Add and debug Index Settings portion of Advanced Options. Successful. Signed-off-by: Chris Hesterman * Remove stray console logs Signed-off-by: Chris Hesterman * Add, update jest and cypress testing for snapshots & restore snapshots Signed-off-by: Chris Hesterman * Save small change snapshots_spec, forgot before prev commit Signed-off-by: Chris Hesterman * Version bump 2.3.0 to 2.3 1 Signed-off-by: Chris Hesterman * Add version bump 2.3.1 for OS in cypress-workflow.yml Signed-off-by: Chris Hesterman * Remove 2.3.1 bump Signed-off-by: Chris Hesterman * Change 2.3 to 2.3.0 cypress-workflow.yml Signed-off-by: Chris Hesterman * Change OSDB version to 2.3.1, opensearch_dashboards.json Signed-off-by: Chris Hesterman * Change 2.4 to 2.4.0 opensearch_dashboards.json Signed-off-by: Chris Hesterman * Update for 2.4 Signed-off-by: Chris Hesterman * Update help text, Snapshots.jsx Signed-off-by: Chris Hesterman * Remove Total size column from IndexList Signed-off-by: Chris Hesterman * Disable restore if partial snapshot but not checked in banner Signed-off-by: Chris Hesterman Remove total size column in indexList Signed-off-by: Chris Hesterman * Add status code and code meaning to toasts, error modal Signed-off-by: Chris Hesterman * Progress making Restore activities panel independent Signed-off-by: Chris Hesterman * RestoreActivitiesPanel no longer needs selected snapshot to access Signed-off-by: Chris Hesterman * Clean up unused code,console logs Signed-off-by: Chris Hesterman * Modify error toasts to be more user friendly Signed-off-by: Chris Hesterman * Handle bad regex input, handle bad JSON input, RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Add check and toast for no indices selected, RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Remove unused interface, server/models/interfaces Signed-off-by: Chris Hesterman * Remove unused interface, console log. Signed-off-by: Chris Hesterman * Small style changes, RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Resolve one missed conflict from previous merge Signed-off-by: Chris Hesterman * Update snapshots_spec.js Signed-off-by: Chris Hesterman * Remove unneeded cy.wait, snapshots_spec Signed-off-by: Chris Hesterman * Fix small bug with refresh button, Restore activities panel Signed-off-by: Chris Hesterman * Remove conflicts in server/models/interfaces Signed-off-by: Chris Hesterman * Remove unused prop"ignore", change ternary to if() in toast helper Signed-off-by: Chris Hesterman * Change label text styling for radios and checkboxes in flyout Signed-off-by: Chris Hesterman * Create checkBoxLabel component in helper.jsx Signed-off-by: Chris Hesterman * Update jest snapshots for unit tests. Signed-off-by: Chris Hesterman * Remove default close button from Restore activities/indiceslist Signed-off-by: Chris Hesterman * Progress with regex validation, testing restore fail in progressd Signed-off-by: Chris Hesterman * Handle error case - bad connection - RestoreActivities Signed-off-by: Chris Hesterman * Implement status for every index being restored, add to Indexlist. Signed-off-by: Chris Hesterman * Sort indexList alphabetically in RestoreActivities Signed-off-by: Chris Hesterman Remove unneeded "getSnapshotIndices" method - RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Progress with form validation, RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * All validations working on action click, RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Refine validation ui on error, RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Refine some toasts/errors Signed-off-by: Chris Hesterman * Simplify toasts, make restore status more descriptive. Signed-off-by: Chris Hesterman * Add interface "IndexItem", models/interfaces Signed-off-by: Chris Hesterman * Remove missed console log, IndexList Signed-off-by: Chris Hesterman * Update unit test snapshots Signed-off-by: Chris Hesterman * Update snapshots_spec to account for recent changes Signed-off-by: Chris Hesterman * Working out validation issue between norman/advanced options Signed-off-by: Chris Hesterman * Incorporate minor requested changes to ui Signed-off-by: Chris Hesterman * Fix issue with validating JSON, RestoreSnapshotFlyout Signed-off-by: Chris Hesterman Move validation functions to helper.ts, debug typescript Signed-off-by: Chris Hesterman * Resolve several potential inconsistencies with validation Signed-off-by: Chris Hesterman * Change title/messages for unrestorable snapshots toasts Signed-off-by: Chris Hesterman * Remove old code that slipped by in update merge Signed-off-by: Chris Hesterman * Update jest snapshots Signed-off-by: Chris Hesterman * Change minor but awkwardly implemented space between text/link Signed-off-by: Chris Hesterman * Add EuiHealth to Restore activities panel, fix toast text Snapshots Signed-off-by: Chris Hesterman * Change restore in progress color to "warning", EuiHealth, Restore activities Signed-off-by: Chris Hesterman * Forgot to save brb Signed-off-by: Chris Hesterman * Remove 2 console.logs, change === to ==, RestoreSnapshotFlyout Signed-off-by: Chris Hesterman * Fix conditional in useEffect, RestoreActivitiesPanel Signed-off-by: Chris Hesterman * Add release notes 2.4 Signed-off-by: Chris Hesterman * Add entry for release notes for adding release notes Signed-off-by: Chris Hesterman * Make corrections to 2.4 release notes Signed-off-by: Chris Hesterman * Add one PR to Maintenance, 2.4 release notes Signed-off-by: Chris Hesterman * Bugfix that was preventing auto refresh from stopping Restore Activities Panel. Signed-off-by: Chris Hesterman * Add 2.4 release notes Signed-off-by: Chris Hesterman * Update 2.4 release notes Signed-off-by: Chris Hesterman Signed-off-by: Chris Hesterman Signed-off-by: Chris Hesterman