-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Pipelines: Add created_date and modified_date
#130847
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3f46277
Pipelines: Add `created_date` and `modified_date`
szybia 0a862e0
Update docs/changelog/130847.yaml
szybia 5e14075
review comments
szybia e28b781
Merge remote-tracking branch 'upstream/main' into index-pipeline-trac…
szybia 6a025c5
Update docs/changelog/130847.yaml
szybia 7e40783
second review
szybia f8b7217
Merge remote-tracking branch 'upstream/main' into index-pipeline-trac…
szybia 0fd6bae
Merge remote-tracking branch 'upstream/main' into index-pipeline-trac…
szybia 4ff7598
petes comments
szybia 190db87
Merge remote-tracking branch 'upstream/main' into index-pipeline-trac…
szybia 11a2dfe
Merge remote-tracking branch 'upstream/main' into index-pipeline-trac…
szybia 24cda39
proposal
szybia 0079f3f
Merge remote-tracking branch 'upstream/main' into index-pipeline-trac…
szybia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 130847 | ||
| summary: "Pipelines: Add `created_date` and `modified_date`" | ||
| area: Ingest Node | ||
| type: enhancement | ||
| issues: [] | ||
84 changes: 84 additions & 0 deletions
84
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/ingest/20_tracking.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| setup: | ||
szybia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - requires: | ||
| test_runner_features: capabilities | ||
| capabilities: | ||
| - method: PUT | ||
| path: /_ingest/pipeline/{id} | ||
| capabilities: [ pipeline_tracking_info ] | ||
| reason: "Pipelines have tracking info: modified_date and created_date" | ||
|
|
||
| --- | ||
| "Test creating and getting pipeline returns created_date and modified_date": | ||
| - do: | ||
| ingest.put_pipeline: | ||
| id: "my_pipeline" | ||
| body: > | ||
| { | ||
| "processors": [] | ||
| } | ||
| - match: { acknowledged: true } | ||
|
|
||
| - do: | ||
| ingest.get_pipeline: | ||
| human: true | ||
| id: "my_pipeline" | ||
| - gte: { my_pipeline.created_date_millis: 0 } | ||
| - gte: { my_pipeline.modified_date_millis: 0 } | ||
| - match: { my_pipeline.created_date: "/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$/" } | ||
| - match: { my_pipeline.modified_date: "/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$/" } | ||
|
|
||
| --- | ||
| "Test PUT setting created_date": | ||
| - do: | ||
| catch: bad_request | ||
| ingest.put_pipeline: | ||
| id: "my_pipeline" | ||
| body: > | ||
| { | ||
| "processors": [], | ||
| "created_date": "2025-07-04T12:50:48.415Z" | ||
| } | ||
| - match: { status: 400 } | ||
| - match: { error.reason: "Provided a pipeline property which is managed by the system: created_date." } | ||
|
|
||
| --- | ||
| "Test PUT setting created_date_millis": | ||
| - do: | ||
| catch: bad_request | ||
| ingest.put_pipeline: | ||
| id: "my_pipeline" | ||
| body: > | ||
| { | ||
| "processors": [], | ||
| "created_date_millis": 0 | ||
| } | ||
| - match: { status: 400 } | ||
| - match: { error.reason: "Provided a pipeline property which is managed by the system: created_date_millis." } | ||
|
|
||
| --- | ||
| "Test PUT setting modified_date_millis": | ||
| - do: | ||
| catch: bad_request | ||
| ingest.put_pipeline: | ||
| id: "my_pipeline" | ||
| body: > | ||
| { | ||
| "processors": [], | ||
| "modified_date_millis": 0 | ||
| } | ||
| - match: { status: 400 } | ||
| - match: { error.reason: "Provided a pipeline property which is managed by the system: modified_date_millis." } | ||
|
|
||
| --- | ||
| "Test PUT setting modified_date": | ||
| - do: | ||
| catch: bad_request | ||
| ingest.put_pipeline: | ||
| id: "my_pipeline" | ||
| body: > | ||
| { | ||
| "processors": [], | ||
| "modified_date": "2025-07-04T12:50:48.415Z" | ||
| } | ||
| - match: { status: 400 } | ||
| - match: { error.reason: "Provided a pipeline property which is managed by the system: modified_date." } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.