Skip to content

[7.17] Change TaskStatus to UserDefinedValue (#2250) (#2251) #2272

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 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
260 changes: 5 additions & 255 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 3 additions & 23 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions specification/_global/get/GetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,4 @@ import { ErrorResponseBase } from '@_types/Base'

export class Response<TDocument> {
body: GetResult<TDocument>
exceptions: [
{
// Special case exception for 404 status code, Elasticsearch will return either:
// * index_not_found_exception as an error if the index doesn't exist
// * GetResult with only the requested _id, _index properties and found as a false boolean
statusCodes: [404]
body: GetResult<TDocument> | ErrorResponseBase
}
]
}
3 changes: 2 additions & 1 deletion specification/tasks/_types/TaskInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import { Status } from '@tasks/_types/TaskStatus'
import { HttpHeaders, Id } from '@_types/common'
import { long } from '@_types/Numeric'
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'

export class Info {
action: string
Expand All @@ -32,7 +33,7 @@ export class Info {
node: string
running_time_in_nanos: long
start_time_in_millis: long
status?: Status
status?: UserDefinedValue
type: string
parent_task_id?: Id
}
Loading