Skip to content
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
1 change: 0 additions & 1 deletion backend/app/api/v1/commons/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@

OSO_FIELD_CONSTANT_DICT = {
"ciSystem": "ciSystem.keyword",
"benchmark": "benchmark.keyword",
"networkType": "networkType.keyword",
"jobStatus": "jobStatus.keyword",
"ocpVersion": "ocpVersion.keyword",
Expand Down
2 changes: 0 additions & 2 deletions backend/app/api/v1/commons/oso.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ async def getData(
end_date=end_datetime,
timestamp_field="timestamp",
)
print("OSO")
print(response)
await es.close()
tasks = [item["_source"] for item in response["data"]]
jobs = pd.json_normalize(tasks)
Expand Down
7 changes: 7 additions & 0 deletions backend/app/api/v1/commons/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,13 @@ def construct_ES_filter_query(filter):
min_match = 0
for key, values in filter.items():
field = key_to_field.get(key, key)
if key == "jobStatus" and "others" in values:
for job_status in constants.JOB_STATUS_MAP.keys():
must_not_part.append(create_match_phrase(field, job_status))
values.remove("others")
if not values:
min_match += 1
continue
min_match += 1
for value in values:
if key in search_value:
Expand Down
1 change: 0 additions & 1 deletion frontend/src/reducers/openstackReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const initialState = {
summary: {},
selectedFilters: [
{ name: "ciSystem", value: [] },
{ name: "benchmark", value: [] },
{ name: "workerNodesCount", value: [] },
{ name: "networkType", value: [] },
{ name: "ocpVersion", value: [] },
Expand Down
Loading