Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ce-deploy-ui
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ccce
dev
ce-deploy-ui
Commits
a5e56bd6
Commit
a5e56bd6
authored
9 months ago
by
Domonkos Gulyas
Browse files
Options
Downloads
Patches
Plain Diff
CE-2949
: Refactor host search param
parent
4d28e515
No related branches found
No related tags found
2 merge requests
!497
CE-2790: Prepare for 4.0.0
,
!491
CE-2949: Refactor host search param
Checking pipeline status
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mocks/fixtures/ccce-api.json
+281
-10
281 additions, 10 deletions
src/mocks/fixtures/ccce-api.json
src/views/host/HostListView.js
+2
-4
2 additions, 4 deletions
src/views/host/HostListView.js
with
283 additions
and
14 deletions
src/mocks/fixtures/ccce-api.json
+
281
−
10
View file @
a5e56bd6
...
...
@@ -33,6 +33,9 @@
{
"name"
:
"Statistics"
},
{
"name"
:
"Maintenance"
},
{
"name"
:
"Hosts"
},
...
...
@@ -41,6 +44,241 @@
}
],
"paths"
:
{
"/api/v1/maintenance_mode"
:
{
"put"
:
{
"tags"
:
[
"Maintenance"
],
"summary"
:
"Set Maintenance Mode"
,
"operationId"
:
"setMaintenanceMode"
,
"requestBody"
:
{
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/SetMaintenance"
}
}
},
"required"
:
true
},
"responses"
:
{
"201"
:
{
"description"
:
"Maintenance Mode Changed"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/MaintenanceMode"
}
}
}
},
"400"
:
{
"description"
:
"Incomplete request"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"401"
:
{
"description"
:
"Unauthorized"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"403"
:
{
"description"
:
"Forbidden: User doesn't have the necessary permissions"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"409"
:
{
"description"
:
"Maintenance Mode already set to that value"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"422"
:
{
"description"
:
"Unprocessable request"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"500"
:
{
"description"
:
"Service exception"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"503"
:
{
"description"
:
"Remote service exception"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
}
},
"security"
:
[
{
"bearerAuth"
:
[]
}
]
}
},
"/api/v1/maintenance_mode/current"
:
{
"get"
:
{
"tags"
:
[
"Maintenance"
],
"summary"
:
"Get Current Maintenance Mode"
,
"operationId"
:
"getCurrentMode"
,
"responses"
:
{
"200"
:
{
"description"
:
"Found Mode"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/MaintenanceMode"
}
}
}
},
"404"
:
{
"description"
:
"Maintenance Mode not found"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"500"
:
{
"description"
:
"Service exception"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
}
}
},
"put"
:
{
"tags"
:
[
"Maintenance"
],
"summary"
:
"End Current Maintenance Mode"
,
"operationId"
:
"endCurrentMaintenanceMode"
,
"responses"
:
{
"201"
:
{
"description"
:
"Maintenance Mode Changed"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/MaintenanceMode"
}
}
}
},
"400"
:
{
"description"
:
"Incomplete request"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"401"
:
{
"description"
:
"Unauthorized"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"403"
:
{
"description"
:
"Forbidden: User doesn't have the necessary permissions"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"409"
:
{
"description"
:
"Maintenance Mode already set to that value"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"422"
:
{
"description"
:
"Unprocessable request"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"500"
:
{
"description"
:
"Service exception"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
},
"503"
:
{
"description"
:
"Remote service exception"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/GeneralException"
}
}
}
}
},
"security"
:
[
{
"bearerAuth"
:
[]
}
]
}
},
"/api/v1/iocs"
:
{
"get"
:
{
"tags"
:
[
"IOCs"
],
...
...
@@ -2277,9 +2515,9 @@
"operationId"
:
"listHosts"
,
"parameters"
:
[
{
"name"
:
"
query
"
,
"name"
:
"
text
"
,
"in"
:
"query"
,
"description"
:
"Search
for host name
"
,
"description"
:
"Search
text (Search for host name or description)
"
,
"required"
:
false
,
"schema"
:
{
"type"
:
"string"
...
...
@@ -3210,21 +3448,22 @@
},
"components"
:
{
"schemas"
:
{
"
CreateIoc
"
:
{
"
SetMaintenance
"
:
{
"type"
:
"object"
,
"properties"
:
{
"namingUuid"
:
{
"type"
:
"string"
"startAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"
gitProjectId
"
:
{
"type"
:
"
integer
"
,
"format"
:
"
int64
"
"
endAt
"
:
{
"type"
:
"
string
"
,
"format"
:
"
date-time
"
},
"
repository_nam
e"
:
{
"
messag
e"
:
{
"type"
:
"string"
}
},
"description"
:
"
IOC to create
"
"description"
:
"
Maintenance Mode to set to
"
},
"GeneralException"
:
{
"type"
:
"object"
,
...
...
@@ -3237,6 +3476,38 @@
}
}
},
"MaintenanceMode"
:
{
"type"
:
"object"
,
"properties"
:
{
"startAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"endAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"message"
:
{
"type"
:
"string"
}
}
},
"CreateIoc"
:
{
"type"
:
"object"
,
"properties"
:
{
"namingUuid"
:
{
"type"
:
"string"
},
"gitProjectId"
:
{
"type"
:
"integer"
,
"format"
:
"int64"
},
"repository_name"
:
{
"type"
:
"string"
}
},
"description"
:
"IOC to create"
},
"Alert"
:
{
"type"
:
"object"
,
"properties"
:
{
...
...
This diff is collapsed.
Click to expand it.
src/views/host/HostListView.js
+
2
−
4
View file @
a5e56bd6
...
...
@@ -119,11 +119,9 @@ export function HostListView() {
// Request new search results whenever search or pagination changes
useEffect
(()
=>
{
let
requestParams
=
initRequestParams
(
pagination
,
deserialize
(
urlState
.
query
)
);
let
requestParams
=
initRequestParams
(
pagination
);
requestParams
.
filter
=
hostFilter
;
requestParams
.
text
=
deserialize
(
urlState
.
query
);
getHosts
(
requestParams
);
return
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment