Skip to content
Open
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: 1 addition & 0 deletions client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
"mathbf",
"mathjax",
"mergerequests",
"metadata_oauth",
"mongodb",
"monospace",
"morgan",
Expand Down
2 changes: 2 additions & 0 deletions client/package.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also update the generate-api and update-api targets.

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"generate-api:platform": "rtk-query-codegen-openapi src/features/platform/api/platform.api-config.ts",
"generate-api:projectCloudStorage": "rtk-query-codegen-openapi src/features/project/components/cloudStorage/api/projectCloudStorage.api-config.ts",
"generate-api:projectV2": "rtk-query-codegen-openapi src/features/projectsV2/api/projectV2.api-config.ts",
"generate-api:repositories": "rtk-query-codegen-openapi src/features/repositories/api/repositories.api-config.ts",
"generate-api:searchV2": "rtk-query-codegen-openapi src/features/searchV2/api/searchV2.api-config.ts",
"generate-api:sessionLaunchersV2": "rtk-query-codegen-openapi src/features/sessionsV2/api/sessionLaunchersV2.api-config.ts",
"generate-api:sessionsV2": "rtk-query-codegen-openapi src/features/sessionsV2/api/sessionsV2.api-config.ts",
Expand All @@ -42,6 +43,7 @@
"update-api:platform": "node scripts/update_api_spec.js platform",
"update-api:projectCloudStorage": "node scripts/update_api_spec.js projectCloudStorage",
"update-api:projectV2": "node scripts/update_api_spec.js projectV2",
"update-api:repositories": "node scripts/update_api_spec.js repositories",
"update-api:searchV2": "node scripts/update_api_spec.js searchV2",
"update-api:sessionLaunchersV2": "node scripts/update_api_spec.js sessionLaunchersV2",
"update-api:sessionsV2": "node scripts/update_api_spec.js sessionsV2",
Expand Down
9 changes: 9 additions & 0 deletions client/scripts/update_api_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ async function main() {
updateProjectCloudStorageApi();
} else if (arg.trim() === "projectV2") {
updateProjectV2Api();
} else if (arg.trim() === "repositories") {
updateRepositoriesApi();
} else if (arg.trim() === "searchV2") {
updateSearchV2Api();
} else if (arg.trim() === "sessionLaunchersV2") {
Expand Down Expand Up @@ -105,6 +107,13 @@ async function updateProjectV2Api() {
});
}

async function updateRepositoriesApi() {
updateApiFiles({
specFile: "components/renku_data_services/repositories/api.spec.yaml",
destFile: "src/features/repositories/api/repositories.openapi.json",
});
}

async function updateSearchV2Api() {
updateApiFiles({
specFile: "components/renku_data_services/search/api.spec.yaml",
Expand Down
Loading
Loading