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

Adds support for creating and displaying the transform continuous mode #153

Merged
merged 3 commits into from
Mar 8, 2022

Conversation

downsrob
Copy link
Contributor

Signed-off-by: Robert Downs downsrob@amazon.com

Description

This change adds support for the continuous mode for transforms in the front end, following the backend introduction in this PR opensearch-project/index-management#206
The changes consist of:

  • Adding a radio button to set the continuous mode for transforms
    ContinuousRadio

  • Displays the continuous mode when confirming the transform details before issuing the final create
    ContinuousConfirm

  • Displays the continuous mode of transforms in the transform details page
    TransformDetails

  • Displays the continuous mode of transforms in the transforms job page
    TransformsJobPage

  • Separates init and started status for transforms. Previously transforms would show as initializing until they finished, now they show as started when running in continuous mode.

Issues Resolved

opensearch-project/index-management#152

Check List

  • 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.

@downsrob downsrob requested a review from a team February 28, 2022 19:21
dbbaughe
dbbaughe previously approved these changes Feb 28, 2022
@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2022

Codecov Report

Merging #153 (84619d3) into main (c28acf8) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #153      +/-   ##
==========================================
+ Coverage   63.38%   63.40%   +0.01%     
==========================================
  Files         155      155              
  Lines        4419     4432      +13     
  Branches      690      691       +1     
==========================================
+ Hits         2801     2810       +9     
- Misses       1402     1407       +5     
+ Partials      216      215       -1     
Impacted Files Coverage Δ
...s/CreateTransform/components/Schedule/Schedule.tsx 90.90% <0.00%> (-9.10%) ⬇️
...ainers/CreateTransformForm/CreateTransformForm.tsx 58.22% <0.00%> (-0.58%) ⬇️
...es/Transforms/containers/Transforms/Transforms.tsx 70.49% <0.00%> (ø)
...sform/components/ReviewSchedule/ReviewSchedule.tsx 80.00% <0.00%> (ø)
...ainers/ReviewAndCreateStep/ReviewAndCreateStep.tsx 90.00% <0.00%> (ø)
...ainers/SpecifyScheduleStep/SpecifyScheduleStep.tsx 47.50% <0.00%> (ø)
...nsforms/containers/Transforms/TransformDetails.tsx 75.65% <0.00%> (+0.43%) ⬆️
...n/public/pages/Transforms/utils/metadataHelper.tsx 72.41% <0.00%> (+2.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de197e8...84619d3. Read the comment docs.

@annie3431
Copy link
Contributor

We can add a cypress test to ensure that a continuous transform can be created. Or add an issue for this.

annie3431
annie3431 previously approved these changes Feb 28, 2022
@downsrob downsrob dismissed stale reviews from annie3431 and dbbaughe via 84619d3 March 4, 2022 01:42
@downsrob downsrob requested review from dbbaughe and annie3431 March 4, 2022 17:19
dbbaughe
dbbaughe previously approved these changes Mar 4, 2022
downsrob and others added 3 commits March 8, 2022 09:46
Signed-off-by: Robert Downs <downsrob@amazon.com>
Signed-off-by: Clay Downs <89109232+downsrob@users.noreply.github.com>
Signed-off-by: Clay Downs <89109232+downsrob@users.noreply.github.com>
@downsrob downsrob merged commit bbcb344 into opensearch-project:main Mar 8, 2022
@downsrob downsrob deleted the continuous-transforms branch March 8, 2022 19:21
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 8, 2022
#153)

* Adds continuous transform mode display and create

Signed-off-by: Robert Downs <downsrob@amazon.com>

* Adds release note

Signed-off-by: Clay Downs <89109232+downsrob@users.noreply.github.com>
(cherry picked from commit bbcb344)
downsrob added a commit to downsrob/index-management-dashboards-plugin that referenced this pull request Mar 9, 2022
opensearch-project#153)

* Adds continuous transform mode display and create

Signed-off-by: Robert Downs <downsrob@amazon.com>

* Adds release note

Signed-off-by: Clay Downs <89109232+downsrob@users.noreply.github.com>
Signed-off-by: Robert Downs <downsrob@amazon.com>
downsrob added a commit that referenced this pull request Mar 9, 2022
* Create backport workflow  (#148)

* Create backport.yml

Signed-off-by: Annie Lee <leeyun@amazon.com>

* Create delete_backport_branch.yml

Signed-off-by: Annie Lee <leeyun@amazon.com>
Signed-off-by: Robert Downs <downsrob@amazon.com>

* Adds support for creating and displaying the transform continuous mode (#153)

* Adds continuous transform mode display and create

Signed-off-by: Robert Downs <downsrob@amazon.com>

* Adds release note

Signed-off-by: Clay Downs <89109232+downsrob@users.noreply.github.com>
Signed-off-by: Robert Downs <downsrob@amazon.com>

* Adds support on UI for min primary shard size rollover condition and min rollover age transition condition (#159)

* Adds the min primary shard size condition in rollover UI

Signed-off-by: Drew Baugher <dbbaughe@amazon.com>

* Removes validation for rollover action that requires at least one condition since backend supports no conditions

Signed-off-by: Drew Baugher <dbbaughe@amazon.com>

* Removes empty rollover conditions in default rollover JSON thats making the create policy fail when sending to backend

Signed-off-by: Drew Baugher <dbbaughe@amazon.com>

* Adds UI support for min rollover age in the transition UI

Signed-off-by: Drew Baugher <dbbaughe@amazon.com>

* Updates jest snapshots for create transition and create action

Signed-off-by: Drew Baugher <dbbaughe@amazon.com>
Signed-off-by: Robert Downs <downsrob@amazon.com>

* Add backport documentation link  (#161)

* Create BACKPORT.md

Signed-off-by: Annie Lee <leeyun@amazon.com>

* Remove backport documentation file and replace with a link

Signed-off-by: Annie Lee <leeyun@amazon.com>
Signed-off-by: Robert Downs <downsrob@amazon.com>

* Updates release notes with new commits (#163)

Signed-off-by: Robert Downs <downsrob@amazon.com>

Co-authored-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>
Co-authored-by: Annie Lee <leeyun@amazon.com>
bowenlan-amzn pushed a commit that referenced this pull request May 9, 2022
#153)

* Adds continuous transform mode display and create

Signed-off-by: Robert Downs <downsrob@amazon.com>

* Adds release note

Signed-off-by: Clay Downs <89109232+downsrob@users.noreply.github.com>
(cherry picked from commit bbcb344)
bowenlan-amzn pushed a commit that referenced this pull request May 9, 2022
* Create backport workflow  (#148)

* Create backport.yml

Signed-off-by: Annie Lee <leeyun@amazon.com>

* Create delete_backport_branch.yml

Signed-off-by: Annie Lee <leeyun@amazon.com>
Signed-off-by: Robert Downs <downsrob@amazon.com>

* Adds support for creating and displaying the transform continuous mode (#153)

* Adds continuous transform mode display and create

Signed-off-by: Robert Downs <downsrob@amazon.com>

* Adds release note

Signed-off-by: Clay Downs <89109232+downsrob@users.noreply.github.com>
Signed-off-by: Robert Downs <downsrob@amazon.com>

* Adds support on UI for min primary shard size rollover condition and min rollover age transition condition (#159)

* Adds the min primary shard size condition in rollover UI

Signed-off-by: Drew Baugher <dbbaughe@amazon.com>

* Removes validation for rollover action that requires at least one condition since backend supports no conditions

Signed-off-by: Drew Baugher <dbbaughe@amazon.com>

* Removes empty rollover conditions in default rollover JSON thats making the create policy fail when sending to backend

Signed-off-by: Drew Baugher <dbbaughe@amazon.com>

* Adds UI support for min rollover age in the transition UI

Signed-off-by: Drew Baugher <dbbaughe@amazon.com>

* Updates jest snapshots for create transition and create action

Signed-off-by: Drew Baugher <dbbaughe@amazon.com>
Signed-off-by: Robert Downs <downsrob@amazon.com>

* Add backport documentation link  (#161)

* Create BACKPORT.md

Signed-off-by: Annie Lee <leeyun@amazon.com>

* Remove backport documentation file and replace with a link

Signed-off-by: Annie Lee <leeyun@amazon.com>
Signed-off-by: Robert Downs <downsrob@amazon.com>

* Updates release notes with new commits (#163)

Signed-off-by: Robert Downs <downsrob@amazon.com>

Co-authored-by: Drew Baugher <46505179+dbbaughe@users.noreply.github.com>
Co-authored-by: Annie Lee <leeyun@amazon.com>
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