Skip to content

Commit 4e7a898

Browse files
committed
fix: code formatting in OpenChoreo backend modules
Fix trailing whitespace and reformat long import statements and function calls to improve code readability across multiple files in the catalog backend modules.
1 parent 097a5f9 commit 4e7a898

4 files changed

Lines changed: 17 additions & 10 deletions

File tree

plugins/catalog-backend-module-openchoreo-incremental/src/config.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export declare const openchoreoApiConfigSchema: import('zod').ZodTypeAny;
2828
/**
2929
* Configuration options for incremental ingestion behavior.
3030
*/
31-
export declare const openchoreoIncrementalConfigSchema: import('zod').ZodTypeAny;
31+
export declare const openchoreoIncrementalConfigSchema: import('zod').ZodTypeAny;
3232

3333
/**
3434
* Complete configuration schema for OpenChoreo incremental plugin.

plugins/catalog-backend-module-openchoreo/src/converters/CtdToTemplateConverter.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { CtdToTemplateConverter, ComponentType } from './CtdToTemplateConverter';
1+
import {
2+
CtdToTemplateConverter,
3+
ComponentType,
4+
} from './CtdToTemplateConverter';
25
import { CHOREO_ANNOTATIONS } from '@openchoreo/backstage-plugin-common';
36

47
describe('CtdToTemplateConverter', () => {

plugins/catalog-backend-module-openchoreo/src/converters/CtdToTemplateConverter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ export class CtdToTemplateConverter {
254254
// Section 3: CI Setup (always included). If allowedWorkflows are present they
255255
// will be used to populate the workflow selector enum; otherwise the
256256
// BuildWorkflowPicker will fetch available workflows from the API.
257-
parameters.push(this.generateCISetupSection(componentType, organizationName));
257+
parameters.push(
258+
this.generateCISetupSection(componentType, organizationName),
259+
);
258260

259261
// Section 4: Traits
260262
parameters.push(this.generateTraitsSection(organizationName));

plugins/catalog-backend-module-openchoreo/src/provider/OpenChoreoEntityProvider.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,12 @@ export class OpenChoreoEntityProvider implements EntityProvider {
225225
const completeComponent = detailData.data;
226226

227227
// Create component entity with providesApis
228-
const componentEntity = this.translateServiceComponentToEntity(
229-
completeComponent,
230-
org.name!,
231-
project.name!,
232-
);
228+
const componentEntity =
229+
this.translateServiceComponentToEntity(
230+
completeComponent,
231+
org.name!,
232+
project.name!,
233+
);
233234
allEntities.push(componentEntity);
234235

235236
// Create API entities if endpoints exist
@@ -264,9 +265,10 @@ export class OpenChoreoEntityProvider implements EntityProvider {
264265
}
265266
}
266267
}
267-
268268
} catch (error) {
269-
this.logger.error(`Failed to process organization ${org.name}: ${error}`);
269+
this.logger.error(
270+
`Failed to process organization ${org.name}: ${error}`,
271+
);
270272
// Continue processing other organizations
271273
}
272274
}

0 commit comments

Comments
 (0)