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

[Backport 2.x] Add created, updated, and provisioned timestamps to saved template #556

Merged
merged 2 commits into from
Mar 9, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 2707210 from #551.

)

* Add created, last updated, and last provisioned fields to Template

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Change last updated timestamp when updating workflow

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Change last provisioned timestamp when provisioning workflow

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Allow overriding template not started check

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Use java.time and not joda time

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Preserve timestamps when encrypting and redacting template

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add bwc tests, more timestamp testing

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Build a Template from an existing one

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Rename param, add comments

Signed-off-by: Daniel Widdis <widdis@gmail.com>

---------

Signed-off-by: Daniel Widdis <widdis@gmail.com>
(cherry picked from commit 2707210)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Copy link

codecov bot commented Mar 9, 2024

Codecov Report

Attention: Patch coverage is 77.50000% with 27 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (2.x@5031c94). Click here to learn what that means.

Files Patch % Lines
...ework/transport/CreateWorkflowTransportAction.java 72.34% 12 Missing and 1 partial ⚠️
...rk/transport/ProvisionWorkflowTransportAction.java 53.33% 7 Missing ⚠️
...a/org/opensearch/flowframework/model/Template.java 88.67% 3 Missing and 3 partials ⚠️
...framework/indices/FlowFrameworkIndicesHandler.java 66.66% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##             2.x     #556   +/-   ##
======================================
  Coverage       ?   72.90%           
  Complexity     ?      675           
======================================
  Files          ?       79           
  Lines          ?     3451           
  Branches       ?      273           
======================================
  Hits           ?     2516           
  Misses         ?      818           
  Partials       ?      117           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dbwiddis dbwiddis merged commit 2fcabf8 into 2.x Mar 9, 2024
34 checks passed
@dbwiddis dbwiddis deleted the backport/backport-551-to-2.x branch March 9, 2024 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant