Skip to content

Commit

Permalink
Revert "Merge pull request #92 from OpsLevel/kr/check_update_input_bu…
Browse files Browse the repository at this point in the history
…gfix"

This reverts commit e541edb, reversing
changes made to 7599b4b.
  • Loading branch information
rocktavious committed Dec 16, 2022
1 parent 1249c3a commit afd7eec
Show file tree
Hide file tree
Showing 17 changed files with 79 additions and 27 deletions.
8 changes: 0 additions & 8 deletions .changes/unreleased/Bugfix-20221109-120748.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions check.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ type CheckUpdateInput struct {
Name string `json:"name,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
EnableOn *iso8601.Time `json:"enableOn,omitempty"`
Category *graphql.ID `json:"categoryId"`
Level *graphql.ID `json:"levelId"`
Owner *graphql.ID `json:"ownerId"`
Filter *graphql.ID `json:"filterId"`
Category *graphql.ID `json:"categoryId,omitempty"`
Level *graphql.ID `json:"levelId,omitempty"`
Owner *graphql.ID `json:"ownerId,omitempty"`
Filter *graphql.ID `json:"filterId,omitempty"`
Notes string `json:"notes"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }},
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check",
"alertSourceNamePredicate": {"type":"equals", "value":"Requests"},
"alertSourceType":"datadog"
}
Expand Down
6 changes: 5 additions & 1 deletion testdata/fixtures/check/update_custom_event_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }},
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check",
"passPending": false,
"serviceSelector": ".metadata.name",
"successCondition": ".metadata.name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }}
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"documentType": "api",
"documentSubtype": "openapi",
{{ template "check_base_vars" }}
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }},
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check",
"days": 5
}
}
Expand Down
6 changes: 5 additions & 1 deletion testdata/fixtures/check/update_manual_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }},
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check",
"updateFrequency": {
"startingDate": "2021-07-26T20:22:44.427Z",
"frequencyTimeScale": "week",
Expand Down
6 changes: 5 additions & 1 deletion testdata/fixtures/check/update_repo_file_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }},
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check",
"directorySearch": true,
"filePaths": [
"/src",
Expand Down
6 changes: 5 additions & 1 deletion testdata/fixtures/check/update_repo_integrated_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }}
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check"
}
}
}
6 changes: 5 additions & 1 deletion testdata/fixtures/check/update_repo_search_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }},
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check",
"fileExtensions": [
"sbt",
"py"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }}
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }}
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }},
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check",
"requireContactMethod": true,
"contactMethod": "email",
"tagKey": "updated_at",
Expand Down
6 changes: 5 additions & 1 deletion testdata/fixtures/check/update_service_property_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }},
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check",
"serviceProperty": "framework",
"propertyValuePredicate": {
"type": "equals",
Expand Down
6 changes: 5 additions & 1 deletion testdata/fixtures/check/update_tag_defined_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }},
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check",
"tagKey": "app",
"tagPredicate": {
"type": "equals",
Expand Down
6 changes: 5 additions & 1 deletion testdata/fixtures/check/update_tool_usage_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"variables": {
"input": {
"id": "Z2lkOi8vb3BzbGV2ZWwvQ2hlY2tzOjpIYXNPd25lci8yNDE4",
{{ template "check_base_vars" }},
"name": "Hello World",
"enabled": true,
"categoryId": "Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvNjA1",
"levelId": "Z2lkOi8vb3BzbGV2ZWwvTGV2ZWwvMzE3",
"notes": "Hello World Check",
"toolCategory": "metrics",
"toolNamePredicate": {
"type": "equals",
Expand Down

0 comments on commit afd7eec

Please sign in to comment.