MCPcopy Index your code
hub / github.com/apache/devlake / generateDomainAccountIdForUsers

Function generateDomainAccountIdForUsers

backend/plugins/tapd/tasks/shared.go:325–336  ·  view source on GitHub ↗

generateDomainAccountIdForUsers generates domain account IDs for a list of users. The input 'param' is a string with format "user1,user2,user3". The function takes a string containing a list of users separated by commas and a connectionId. It returns a string containing the generated domain account

(param string, connectionId uint64)

Source from the content-addressed store, hash-verified

323// The function takes a string containing a list of users separated by commas and a connectionId.
324// It returns a string containing the generated domain account IDs for each user, separated by commas.
325func generateDomainAccountIdForUsers(param string, connectionId uint64) string {
326 if param == "" {
327 return ""
328 }
329 param = replaceSemicolonWithComma(param)
330 users := strings.Split(param, ",")
331 var res []string
332 for _, user := range users {
333 res = append(res, getAccountIdGen().Generate(connectionId, user))
334 }
335 return strings.Join(res, ",")
336}
337
338// extractStatus extracts the status from the given blob and returns a map of status names to status values.
339func extractStatus(blob []byte) (map[string]string, errors.Error) {

Callers 4

ConvertTaskChangelogFunction · 0.85
ConvertStoryChangelogFunction · 0.85
ConvertBugChangelogFunction · 0.85

Calls 3

GenerateMethod · 0.80
getAccountIdGenFunction · 0.70

Tested by 1