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

Use current timestamps for registering agent #325

Merged
merged 2 commits into from
Dec 27, 2023

Conversation

dbwiddis
Copy link
Member

Description

Registering an agent normally uses the current time for creation and last updated. These fields should not be provided by a user.

There is a mismatch between the required fields in workflowstep.json and the Required/Optional fields in the Workflow Step itself (and no null handling for omission of some fields). This should probably be reviewed in a bit more detail.

Issues Resolved

Fixes #324

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.

@github-actions github-actions bot added the backport 2.x backport PRs to 2.x branch label Dec 27, 2023
@dbwiddis dbwiddis merged commit 74533f2 into opensearch-project:main Dec 27, 2023
18 of 19 checks passed
@dbwiddis dbwiddis deleted the no-timestamp branch December 27, 2023 17:31
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 27, 2023
* Use current timestamps for registering agent

Signed-off-by: Daniel Widdis <[email protected]>

* Remove other non-required keys and handle nulls

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 74533f2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Dec 27, 2023
Use current timestamps for registering agent (#325)

* Use current timestamps for registering agent



* Remove other non-required keys and handle nulls



---------


(cherry picked from commit 74533f2)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Register Agent step incorrectly requires current timestamps
2 participants