Skip to content

Commit

Permalink
Pull request update/240912
Browse files Browse the repository at this point in the history
e8c6607 OS-5122. Fixed katara swagger
0e3babe OS-5119. Swagger fixes
49bd878 OS-7836. Update express
  • Loading branch information
stanfra authored Sep 12, 2024
2 parents 078568d + e8c6607 commit d6f3b1c
Show file tree
Hide file tree
Showing 16 changed files with 580 additions and 211 deletions.
214 changes: 157 additions & 57 deletions jira_ui/server/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jira_ui/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "ISC",
"dependencies": {
"dotenv": "^16.3.1",
"express": "^4.19.2",
"express": "^4.20.0",
"express-rate-limit": "^6.10.0"
},
"devDependencies": {
Expand Down
223 changes: 172 additions & 51 deletions jira_ui/ui/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jira_ui/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@vitejs/plugin-react-swc": "^3.6.0",
"dotenv": "^16.3.1",
"express": "^4.19.2",
"express": "^4.20.0",
"http-proxy-middleware": "^2.0.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions katara/katara_service/handlers/v2/recipients.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def get(self, recipient_id):
tags: [recipients]
summary: Get recipient
parameters:
- name: id
- name: recipient_id
in: path
description: Recipient ID
required: true
Expand Down Expand Up @@ -165,7 +165,7 @@ async def get(self, **kwargs):
Required permission: CLUSTER_SECRET
parameters:
- name: scope_id
in: path
in: query
description: Recipient scope id (organization id)
required: true
type: string
Expand Down
2 changes: 1 addition & 1 deletion katara/katara_service/handlers/v2/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def get(self, report_id):
tags: [reports]
summary: Get report
parameters:
- name: id
- name: report_id
in: path
description: Report ID
required: true
Expand Down
14 changes: 5 additions & 9 deletions katara/katara_service/handlers/v2/schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def get(self, schedule_id):
tags: [schedules]
summary: Get schedule
parameters:
- name: id
- name: schedule_id
in: path
description: Schedule ID
required: true
Expand Down Expand Up @@ -79,7 +79,7 @@ async def patch(self, schedule_id, **kwargs):
Modifies a schedule with specified id \n\n
Required permission: CLUSTER_SECRET
parameters:
- name: id
- name: schedule_id
in: path
description: Schedule ID
required: true
Expand All @@ -93,10 +93,6 @@ async def patch(self, schedule_id, **kwargs):
properties:
crontab: {type: string,
description: "Schedule in crontab format"}
last_run: {type: integer,
description: "Schedule last_run"}
next_run: {type: integer,
description: "Schedule next_run"}
responses:
200: {description: Success (returns modified schedule data)}
400:
Expand Down Expand Up @@ -133,7 +129,7 @@ async def delete(self, schedule_id, **kwargs):
Deletes schedule with specified id \n\n
Required permission: CLUSTER_SECRET
parameters:
- name: id
- name: schedule_id
in: path
description: Schedule ID
required: true
Expand Down Expand Up @@ -225,12 +221,12 @@ async def get(self, **kwargs):
Required permission: CLUSTER_SECRET
parameters:
- name: recipient_id
in: path
in: query
description: Schedule recipient id
required: true
type: string
- name: report_id
in: path
in: query
description: Schedule report id
required: false
type: string
Expand Down
4 changes: 1 addition & 3 deletions katara/katara_service/handlers/v2/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ async def patch(self, task_id, **kwargs):
Modifies a task with specified id \n\n
Required permission: CLUSTER_SECRET
parameters:
- name: id
- name: task_id
in: path
description: Task ID
required: true
Expand All @@ -166,8 +166,6 @@ async def patch(self, task_id, **kwargs):
schema:
type: object
properties:
completed_at: {type: integer,
description: "Task completed timestamp"}
state: {type: string,
description: "Task state"}
result: {type: string,
Expand Down
2 changes: 1 addition & 1 deletion ngui/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@types/node": "^20.14.9",
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"express": "^4.19.2",
"express": "^4.20.0",
"graphql": "^16.9.0",
"graphql-scalars": "^1.23.0",
"http-proxy-middleware": "^2.0.6",
Expand Down
Loading

0 comments on commit d6f3b1c

Please sign in to comment.