Skip to content

Commit 18f84b8

Browse files
feat: improve integrations and code repos UX
* Generate repository APIs code automatically * Show better feedback on code repositories' status * Block session start for unavailable or unaccessible repos
1 parent e662f56 commit 18f84b8

29 files changed

+1596
-738
lines changed

client/.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
"mathbf",
187187
"mathjax",
188188
"mergerequests",
189+
"metadata_oauth",
189190
"mongodb",
190191
"monospace",
191192
"morgan",

client/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"generate-api:platform": "rtk-query-codegen-openapi src/features/platform/api/platform.api-config.ts",
3131
"generate-api:projectCloudStorage": "rtk-query-codegen-openapi src/features/project/components/cloudStorage/api/projectCloudStorage.api-config.ts",
3232
"generate-api:projectV2": "rtk-query-codegen-openapi src/features/projectsV2/api/projectV2.api-config.ts",
33+
"generate-api:repositories": "rtk-query-codegen-openapi src/features/repositories/api/repositories.api-config.ts",
3334
"generate-api:searchV2": "rtk-query-codegen-openapi src/features/searchV2/api/searchV2.api-config.ts",
3435
"generate-api:sessionLaunchersV2": "rtk-query-codegen-openapi src/features/sessionsV2/api/sessionLaunchersV2.api-config.ts",
3536
"generate-api:sessionsV2": "rtk-query-codegen-openapi src/features/sessionsV2/api/sessionsV2.api-config.ts",
@@ -42,6 +43,7 @@
4243
"update-api:platform": "node scripts/update_api_spec.js platform",
4344
"update-api:projectCloudStorage": "node scripts/update_api_spec.js projectCloudStorage",
4445
"update-api:projectV2": "node scripts/update_api_spec.js projectV2",
46+
"update-api:repositories": "node scripts/update_api_spec.js repositories",
4547
"update-api:searchV2": "node scripts/update_api_spec.js searchV2",
4648
"update-api:sessionLaunchersV2": "node scripts/update_api_spec.js sessionLaunchersV2",
4749
"update-api:sessionsV2": "node scripts/update_api_spec.js sessionsV2",

client/scripts/update_api_spec.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ async function main() {
4242
updateProjectCloudStorageApi();
4343
} else if (arg.trim() === "projectV2") {
4444
updateProjectV2Api();
45+
} else if (arg.trim() === "repositories") {
46+
updateRepositoriesApi();
4547
} else if (arg.trim() === "searchV2") {
4648
updateSearchV2Api();
4749
} else if (arg.trim() === "sessionLaunchersV2") {
@@ -105,6 +107,13 @@ async function updateProjectV2Api() {
105107
});
106108
}
107109

110+
async function updateRepositoriesApi() {
111+
updateApiFiles({
112+
specFile: "components/renku_data_services/repositories/api.spec.yaml",
113+
destFile: "src/features/repositories/api/repositories.openapi.json",
114+
});
115+
}
116+
108117
async function updateSearchV2Api() {
109118
updateApiFiles({
110119
specFile: "components/renku_data_services/search/api.spec.yaml",

0 commit comments

Comments
 (0)