MCPcopy Create free account
hub / github.com/bytebase/bytebase / applyPlanTitleToQuery

Function applyPlanTitleToQuery

frontend/src/react/lib/plan/title.ts:37–48  ·  view source on GitHub ↗
(
  query: Record<string, string>,
  project: Pick<Project, "enforceIssueTitle">,
  generate: () => string
)

Source from the content-addressed store, hash-verified

35 * in one callable so there's exactly one place to audit.
36 */
37export const applyPlanTitleToQuery = (
38 query: Record<string, string>,
39 project: Pick<Project, "enforceIssueTitle">,
40 generate: () => string
41): void => {
42 const name = planQueryNameForProject(project, generate);
43 if (name === undefined) {
44 delete query.name;
45 } else {
46 query.name = name;
47 }
48};

Callers 6

gotoCreateIssueFunction · 0.90
SQLEditorHomePageFunction · 0.90
ProjectPlanDashboardPageFunction · 0.90
ProjectSyncSchemaPageFunction · 0.90
preCreateIssueFunction · 0.90
title.test.tsFile · 0.90

Calls 1

planQueryNameForProjectFunction · 0.85

Tested by

no test coverage detected