Merge pull request #16113 from backstage/freben/comments
🧹 just some comment cleanup
This commit is contained in:
@@ -89,23 +89,23 @@ export class FrobsProvider implements EntityProvider {
|
||||
private readonly reader: UrlReader;
|
||||
private connection?: EntityProviderConnection;
|
||||
|
||||
/** [1] **/
|
||||
/** [1] */
|
||||
constructor(env: string, reader: UrlReader) {
|
||||
this.env = env;
|
||||
this.reader = reader;
|
||||
}
|
||||
|
||||
/** [2] **/
|
||||
/** [2] */
|
||||
getProviderName(): string {
|
||||
return `frobs-${this.env}`;
|
||||
}
|
||||
|
||||
/** [3] **/
|
||||
/** [3] */
|
||||
async connect(connection: EntityProviderConnection): Promise<void> {
|
||||
this.connection = connection;
|
||||
}
|
||||
|
||||
/** [4] **/
|
||||
/** [4] */
|
||||
async run(): Promise<void> {
|
||||
if (!this.connection) {
|
||||
throw new Error('Not initialized');
|
||||
@@ -116,10 +116,10 @@ export class FrobsProvider implements EntityProvider {
|
||||
);
|
||||
const data = JSON.parse(await response.buffer()).toString();
|
||||
|
||||
/** [5] **/
|
||||
/** [5] */
|
||||
const entities: Entity[] = frobsToEntities(data);
|
||||
|
||||
/** [6] **/
|
||||
/** [6] */
|
||||
await this.connection.applyMutation({
|
||||
type: 'full',
|
||||
entities: entities.map(entity => ({
|
||||
|
||||
@@ -21,7 +21,8 @@ import {
|
||||
|
||||
/**
|
||||
* Allows plugins to register shutdown hooks that are run when the process is about to exit.
|
||||
* @public */
|
||||
* @public
|
||||
*/
|
||||
export const lifecycleFactory = createServiceFactory({
|
||||
service: coreServices.lifecycle,
|
||||
deps: {
|
||||
|
||||
+3
-1
@@ -58,7 +58,9 @@ export class BackendLifecycleImpl implements RootLifecycleService {
|
||||
|
||||
/**
|
||||
* Allows plugins to register shutdown hooks that are run when the process is about to exit.
|
||||
* @public */
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const rootLifecycleFactory = createServiceFactory({
|
||||
service: coreServices.rootLifecycle,
|
||||
deps: {
|
||||
|
||||
@@ -18,7 +18,7 @@ import { LoggerService } from './LoggerService';
|
||||
|
||||
/**
|
||||
* @public
|
||||
**/
|
||||
*/
|
||||
export type LifecycleServiceShutdownHook = {
|
||||
fn: () => void | Promise<void>;
|
||||
|
||||
@@ -30,7 +30,7 @@ export type LifecycleServiceShutdownHook = {
|
||||
|
||||
/**
|
||||
* @public
|
||||
**/
|
||||
*/
|
||||
export interface LifecycleService {
|
||||
/**
|
||||
* Register a function to be called when the backend is shutting down.
|
||||
|
||||
@@ -32,7 +32,7 @@ export type SubmenuOptions = {
|
||||
drawerWidthOpen?: number;
|
||||
};
|
||||
|
||||
/** @internal **/
|
||||
/** @internal */
|
||||
export type SidebarConfig = {
|
||||
drawerWidthClosed: number;
|
||||
drawerWidthOpen: number;
|
||||
@@ -78,7 +78,7 @@ export const makeSidebarConfig = (
|
||||
sidebarConfig.drawerWidthClosed - sidebarConfig.userBadgePadding * 2,
|
||||
});
|
||||
|
||||
/** @internal **/
|
||||
/** @internal */
|
||||
export type SubmenuConfig = {
|
||||
drawerWidthClosed: number;
|
||||
drawerWidthOpen: number;
|
||||
|
||||
@@ -119,7 +119,7 @@ export class TestApiRegistry implements ApiHolder {
|
||||
* implements a subset of the `IdentityApi`.
|
||||
*
|
||||
* @public
|
||||
**/
|
||||
*/
|
||||
export const TestApiProvider = <T extends any[]>(
|
||||
props: TestApiProviderProps<T>,
|
||||
) => {
|
||||
|
||||
+2
-2
@@ -43,7 +43,7 @@ import { codeSearch } from '../lib';
|
||||
* target: https://dev.azure.com/org/project/_git/repo
|
||||
*
|
||||
* @public
|
||||
**/
|
||||
*/
|
||||
export class AzureDevOpsDiscoveryProcessor implements CatalogProcessor {
|
||||
private readonly integrations: ScmIntegrationRegistry;
|
||||
private readonly logger: Logger;
|
||||
@@ -123,7 +123,7 @@ export class AzureDevOpsDiscoveryProcessor implements CatalogProcessor {
|
||||
|
||||
/**
|
||||
* parseUrl extracts segments from the Azure DevOps URL.
|
||||
**/
|
||||
*/
|
||||
export function parseUrl(urlString: string): {
|
||||
baseUrl: string;
|
||||
org: string;
|
||||
|
||||
@@ -46,7 +46,7 @@ import { getOrganizationRepositories } from '../lib';
|
||||
* target: https://github.com/backstage/*\/blob/main/catalog-info.yaml
|
||||
*
|
||||
* @public
|
||||
**/
|
||||
*/
|
||||
export class GithubDiscoveryProcessor implements CatalogProcessor {
|
||||
private readonly integrations: ScmIntegrationRegistry;
|
||||
private readonly logger: Logger;
|
||||
|
||||
@@ -42,7 +42,7 @@ import { rootRouteRef } from '../../plugin';
|
||||
|
||||
/**
|
||||
* @public
|
||||
**/
|
||||
*/
|
||||
export interface SearchModalChildrenProps {
|
||||
/**
|
||||
* A function that should be invoked when navigating away from the modal.
|
||||
@@ -52,7 +52,7 @@ export interface SearchModalChildrenProps {
|
||||
|
||||
/**
|
||||
* @public
|
||||
**/
|
||||
*/
|
||||
export interface SearchModalProps {
|
||||
/**
|
||||
* If true, it renders the modal.
|
||||
|
||||
@@ -39,9 +39,8 @@ export class StackOverflowClient implements StackOverflowApi {
|
||||
}
|
||||
|
||||
/**
|
||||
* List Questions in the StackOverflow instance
|
||||
*
|
||||
* */
|
||||
* List questions in the StackOverflow instance
|
||||
*/
|
||||
async listQuestions(options: {
|
||||
requestParams: StackOverflowQuestionsRequestParams;
|
||||
}): Promise<StackOverflowQuestion[]> {
|
||||
|
||||
@@ -162,7 +162,7 @@ export interface FactRetriever {
|
||||
* \{ timeToLive: 1209600000 \}
|
||||
* \{ timeToLive: \{ weeks: 4 \} \}
|
||||
*
|
||||
**/
|
||||
*/
|
||||
export type TTL = { timeToLive: DurationLike };
|
||||
|
||||
/**
|
||||
@@ -172,7 +172,7 @@ export type TTL = { timeToLive: DurationLike };
|
||||
* @example
|
||||
* \{ maxItems: 10 \}
|
||||
*
|
||||
**/
|
||||
*/
|
||||
export type MaxItems = { maxItems: number };
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user