You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'refactor-DAPS-1522-Version-Router-Logging-Improvements' of github.com:ORNL/DataFed into refactor-DAPS-1522-Version-Router-Logging-Improvements
"for t in tagview search analyzer(t._key in tokens(@name,'tag_name'), 'tag_name') let s = BM25(t) sort s desc limit @off,@cnt return {name: t._key, count: t.count}",
"for t in tagview search analyzer(t._key in tokens(@name,'tag_name'), 'tag_name') let s = BM25(t) sort s desc limit @off,@cnt return {name: t._key, count: t.count}",
42
+
{
43
+
name: name,
44
+
off: off,
45
+
cnt: cnt,
46
+
},
47
+
{
48
+
fullCount: true,
49
+
},
50
+
);
51
+
tot=result.getExtra().stats.fullCount;
36
52
37
53
result=result.toArray();
38
54
result.push({
@@ -44,7 +60,34 @@ router
44
60
});
45
61
46
62
res.send(result);
63
+
logger.logRequestSuccess({
64
+
client: client?._id,
65
+
correlationId: req.headers["x-correlation-id"],
66
+
httpVerb: "POST",
67
+
routePath: basePath+"/search",
68
+
status: "Success",
69
+
description: `Search for tags by name(${req.queryParams?.name?.trim()})`,
70
+
extra: {
71
+
requestedName: name,
72
+
returnedCount: result?.length-1,// subtract the paging object
73
+
total_found: tot,
74
+
},
75
+
});
47
76
}catch(e){
77
+
logger.logRequestFailure({
78
+
client: client?._id,
79
+
correlationId: req.headers["x-correlation-id"],
80
+
httpVerb: "POST",
81
+
routePath: basePath+"/search",
82
+
status: "Failure",
83
+
description: `Search for tags by name(${req.queryParams?.name?.trim()})`,
84
+
extra: {
85
+
requestedName: name,
86
+
returnedCount: result?.length-1,// subtract the paging object
Copy file name to clipboardExpand all lines: web/datafed-ws.js
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -592,12 +592,22 @@ the registration page.
592
592
593
593
a_resp.redirect("/ui/register");
594
594
}else{
595
+
if(reply.user.length>1){
596
+
logger.warn(
597
+
"ui/authn",
598
+
getCurrentLineNumber(),
599
+
"More than one user was returned from DataFed, this can happen if a user has registered two or more separate accounts with DataFed and has since linked their identities from a third party identity manager. DataFed will select the first identity when logging in.",
0 commit comments