Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ceb7524

Browse files
committedFeb 28, 2024·
nit naming and comment updates
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
1 parent d04e593 commit ceb7524

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎server/plugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ export class FlowFrameworkDashboardsPlugin
4343
this.logger.debug('flow-framework-dashboards: Setup');
4444
const router = core.http.createRouter();
4545

46-
// Get any custom/overridden headers
46+
// Get global config
4747
const globalConfig = await this.globalConfig$.pipe(first()).toPromise();
4848

49-
// Create OpenSearch client w/ relevant plugins and headers
49+
// Create OpenSearch client, including flow framework plugin APIs
5050
const client: ILegacyClusterClient = core.opensearch.legacy.createClient(
5151
'flow_framework',
5252
{

‎server/routes/flow_framework_routes_service.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ export class FlowFrameworkRoutesService {
123123
.asScoped(req)
124124
.callAsCurrentUser('flowFramework.searchWorkflows', { body });
125125
const workflowHits = response.hits.hits as any[];
126-
const workflowsMap = {} as WorkflowDict;
126+
const workflowDict = {} as WorkflowDict;
127127
workflowHits.forEach((workflowHit: any) => {
128-
workflowsMap[workflowHit._id] = toWorkflowObj(workflowHit);
128+
workflowDict[workflowHit._id] = toWorkflowObj(workflowHit);
129129
});
130130

131-
return res.ok({ body: { workflows: workflowsMap } });
131+
return res.ok({ body: { workflows: workflowDict } });
132132
} catch (err: any) {
133133
return generateCustomError(res, err);
134134
}

0 commit comments

Comments
 (0)
Please sign in to comment.