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

Function unknownUser

frontend/src/types/v1/user.ts:24–37  ·  view source on GitHub ↗
(name: string = "")

Source from the content-addressed store, hash-verified

22export const UNKNOWN_USER_NAME = `users/${UNKNOWN_ID}`;
23
24export const unknownUser = (name: string = ""): User => {
25 const user = create(UserSchema, {
26 name: UNKNOWN_USER_NAME,
27 state: State.ACTIVE,
28 title: i18n.t("common.unknown"),
29 });
30 if (name) {
31 user.name = name;
32 const email = extractUserEmail(name);
33 user.email = email;
34 user.title = email.split("@")[0];
35 }
36 return user;
37};
38
39export const ALL_USERS_USER_EMAIL = "allUsers";
40// Pseudo allUsers account.

Callers 15

IssueTable.tsxFile · 0.90
IssueCommentHeaderFunction · 0.90
IssueCommentActionIconFunction · 0.90
createUserSliceFunction · 0.90
PlanRowFunction · 0.90
ReviewGateRowFunction · 0.90
ActorNameFunction · 0.90
ReviewRejectionBannerFunction · 0.90
FlowNodeFunction · 0.90
ApprovedPopoverRowFunction · 0.90
ChipAvatarsFunction · 0.90

Calls 1

extractUserEmailFunction · 0.90

Tested by

no test coverage detected